Forums | Chat | News | Contact Us | Register | PSU Social |
PSU: Cyssorside soooooo much fun.
Forums | Chat | News | Contact Us | Register | PSU Social |
Home | Forum | Chat | Wiki | Social | AGN | PS2 Stats |
|
|
|
Thread Tools | Search this Thread | Display Modes |
2013-01-31, 07:53 PM | [Ignore Me] #1 | ||
Staff Sergeant
|
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 11:04 PM. |
||
|
2013-02-01, 07:33 AM | [Ignore Me] #10 | ||||
Staff Sergeant
|
Thanks all!
I should be able to add infantry to this. Just need to extract the models and textures.
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 08:11 AM. |
||||
|
2013-02-01, 11:00 AM | [Ignore Me] #13 | |||
Staff Sergeant
|
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 |
|||
|
2013-02-01, 11:28 AM | [Ignore Me] #14 | |||
It's working on my home PC with Chrome though, that's enough for me.
__________________
|
||||
|
2013-02-01, 11:34 AM | [Ignore Me] #15 | ||
Corporal
|
Good job!
How do you get the 3d models?
__________________
Gameplay footage // Dogfight Montages // Outfit play ect http://www.youtube.com/user/GrmlZGaming |
||
|
|
Bookmarks |
|
|