New tool: in-browser 3D model / camo viewer - PlanetSide Universe
PSU Social Facebook Twitter Twitter YouTube Steam TwitchTV
PlanetSide Universe
PSU: Known to cause flames
Home Forum Chat Wiki Social AGN PS2 Stats
Notices
Go Back   PlanetSide Universe > PlanetSide Discussions > PlanetSide 2 Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 2013-01-31, 06:53 PM   [Ignore Me] #1
zomg
Staff Sergeant
 
zomg's Avatar
 
New tool: in-browser 3D model / camo viewer


Just posted the first version of my camo/model viewer:

http://ps2hq.com/model-viewer

It uses the game's own 3D models and textures, and renders them in the browser using WebGL.

Performs best in Chrome. Works in Firefox, and in Opera as well if you enable WebGL (it's disabled by default in Opera)

Some features I plan on adding: Add any missing camos, and if it isn't a huge amount of work, add vehicle attachments (eg. armor, bumpers and whatnot)


Let me know what you think!

Last edited by zomg; 2013-02-01 at 10:04 PM.
zomg is offline  
Reply With Quote
Old 2013-01-31, 07:06 PM   [Ignore Me] #2
PeterDen
Private
 
Re: New tool: in-browser 3D model / camo viewer


Its not accurate... Look at the girafe design, its missing some yellow!!!
PeterDen is offline  
Reply With Quote
Old 2013-01-31, 07:13 PM   [Ignore Me] #3
Neutral Calypso
Sergeant Major
 
Neutral Calypso's Avatar
 
Re: New tool: in-browser 3D model / camo viewer



Did somebody say giraffe???

*exorcises the wielder of the unholy giraffe!*
Neutral Calypso is offline  
Reply With Quote
Old 2013-02-01, 01:09 AM   [Ignore Me] #4
Rolfski
Major
 
Rolfski's Avatar
 
Re: New tool: in-browser 3D model / camo viewer


Awesome mate! SOE, please give this guy some Station Cash for a job you should have done in the first place.
Rolfski is offline  
Reply With Quote
Old 2013-02-01, 01:32 AM   [Ignore Me] #5
Roy Awesome
First Sergeant
 
Re: New tool: in-browser 3D model / camo viewer


Holy crap you made this fast.

You asked me how to get the 3d models like the other night. Good work
Roy Awesome is offline  
Reply With Quote
Old 2013-02-01, 01:56 AM   [Ignore Me] #6
Lonehunter
Lieutenant General
 
Lonehunter's Avatar
 
Re: New tool: in-browser 3D model / camo viewer


Awesome!
__________________
Originally Posted by Higby View Post
And if you back in 2003 decided you wanted to play RTS games, between then and now you'd have dozens of RTS games you could have played. If you decided to play MMOFPS' between then and now, there were none
Lonehunter is offline  
Reply With Quote
Old 2013-02-01, 02:47 AM   [Ignore Me] #7
Happytrail
Private
 
Happytrail's Avatar
 
Re: New tool: in-browser 3D model / camo viewer


really nice.
but giraffe is black and white in the viewer (for me atleast) and digital dosent load. everything else seems to work.
Happytrail is offline  
Reply With Quote
Old 2013-02-01, 02:55 AM   [Ignore Me] #8
Sturmhardt
Contributor
Major
 
Sturmhardt's Avatar
 


Nice work, but whenever I try to change the camo the whole model just turns black...

.sent via phone.
__________________
Sturmhardt is offline  
Reply With Quote
Old 2013-02-01, 03:02 AM   [Ignore Me] #9
Jaged
Contributor
Lieutenant General
 
Jaged's Avatar
 
Re: New tool: in-browser 3D model / camo viewer


Is there any way to do infantry?
__________________
Jaged is offline  
Reply With Quote
Old 2013-02-01, 06:33 AM   [Ignore Me] #10
zomg
Staff Sergeant
 
zomg's Avatar
 
Re: New tool: in-browser 3D model / camo viewer


Thanks all!

Originally Posted by Sturmhardt View Post
Nice work, but whenever I try to change the camo the whole model just turns black...

.sent via phone.
Which browser are you using? Does this happen for all vehicles using any of the camos?

Originally Posted by Jaged View Post
Is there any way to do infantry?
I should be able to add infantry to this. Just need to extract the models and textures.

Originally Posted by Happytrail View Post
really nice.
but giraffe is black and white in the viewer (for me atleast) and digital dosent load. everything else seems to work.
Yeah I'm not sure how to calculate the color hue for the camos. If anyone can help me figure out how that's calculated off the textures, that would be great.

This is how they work as far as I know, example with prowler:

The main texture for the Prowler looks like this:
http://ps2hq.com/static/textures/Veh..._Chassis_C.jpg

Then, we have a texture which is split into multiple channels for different data:
http://ps2hq.com/static/textures/Veh..._Chassis_N.jpg
- Alpha channel: Used for bump mapping (as far as I know)
- Blue channel: Used as the mask for camos
- Red channel: ???
- Green channel: ???

This would be the primary candidate for the one containing the hues I think, however I haven't got a clue how to extract the info.

You may notice it's a jpeg and I just said alpha channel. This is converted from a DDS which has an alpha, and the alpha channel for this file is in a separate jpeg here:
http://ps2hq.com/static/textures/Veh..._Chassis_B.jpg

So that one is the bump map.

This is the specular map, it's applied directly as far as I know:
http://ps2hq.com/static/textures/Veh..._Chassis_S.jpg

Then we have this weird one, which I initially thought was the camo mask, but it isn't. No clue what it does.
http://ps2hq.com/static/textures/Veh...Chassis_DS.jpg

Best guess: DS = Depth Stencil

The color hue might also be calculated from the base texture's colors in some fashion. No idea how though.

Lastly, here's a model you can open in 3D Studio Max if you want to test the assumptions:
http://planetside2hq.com:8080/model-...assis_LOD0.obj

And this is the giraffe camo file: http://ps2hq.com/static/camos/Giraffe_TC.jpg

Heretik helped a lot in figuring these out so props to him

Last edited by zomg; 2013-02-01 at 07:11 AM.
zomg is offline  
Reply With Quote
Old 2013-02-01, 08:06 AM   [Ignore Me] #11
Sonny
Contributor
First Sergeant
 
Re: New tool: in-browser 3D model / camo viewer


This is awesome zomg, thanks a lot!
Sonny is offline  
Reply With Quote
Old 2013-02-01, 08:30 AM   [Ignore Me] #12
Sturmhardt
Contributor
Major
 
Sturmhardt's Avatar
 


I am getting the black models with chrome... But it's my PC at work, so I don't know what other shit the it guys installed here that prevents me from seeing it correctly

.sent via phone.
__________________
Sturmhardt is offline  
Reply With Quote
Old 2013-02-01, 10:00 AM   [Ignore Me] #13
zomg
Staff Sergeant
 
zomg's Avatar
 
Re: New tool: in-browser 3D model / camo viewer


Originally Posted by Sturmhardt View Post
I am getting the black models with chrome... But it's my PC at work, so I don't know what other shit the it guys installed here that prevents me from seeing it correctly

.sent via phone.
Ok, could be it's some issue with the setup there or the network or whatever.

It might be useful if you can check the Chrome Developer Tools for any errors... Click the menu icon on the tab bar, then Tools, then Developer Tools, then go to the Console tab and copy any errors from there.

Just to make sure it isn't an issue with my code
__________________
zomg is offline  
Reply With Quote
Old 2013-02-01, 10:28 AM   [Ignore Me] #14
Sturmhardt
Contributor
Major
 
Sturmhardt's Avatar
 
Re: New tool: in-browser 3D model / camo viewer


Originally Posted by zomg View Post
Ok, could be it's some issue with the setup there or the network or whatever.

It might be useful if you can check the Chrome Developer Tools for any errors... Click the menu icon on the tab bar, then Tools, then Developer Tools, then go to the Console tab and copy any errors from there.

Just to make sure it isn't an issue with my code
I will do that on monday if I don't forget it :>
It's working on my home PC with Chrome though, that's enough for me.
__________________
Sturmhardt is offline  
Reply With Quote
Old 2013-02-01, 10:34 AM   [Ignore Me] #15
GrmlZ
Corporal
 
GrmlZ's Avatar
 
Re: New tool: in-browser 3D model / camo viewer


Good job!

Originally Posted by Roy Awesome View Post
Holy crap you made this fast.

You asked me how to get the 3d models like the other night. Good work
How do you get the 3d models?
__________________


Gameplay footage // Dogfight Montages // Outfit play ect
http://www.youtube.com/user/GrmlZGaming
GrmlZ is offline  
Reply With Quote
Reply
  PlanetSide Universe > PlanetSide Discussions > PlanetSide 2 Discussion

Bookmarks

Discord


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:31 PM.

Content © 2002-2013, PlanetSide-Universe.com, All rights reserved.
PlanetSide and the SOE logo are registered trademarks of Sony Online Entertainment Inc. © 2004 Sony Online Entertainment Inc. All rights reserved.
All other trademarks or tradenames are properties of their respective owners.
Powered by vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.