Author Topic: Transparent Texture fix  (Read 3645 times)

0 Members and 1 Guest are viewing this topic.

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Transparent Texture fix
This is for Zacam. I tried to fix the transparent texture ordering bug in model rendering but I don't have a ship to test it so I'm posting it here.

Build: http://www.mediafire.com/?f7l4kwbe0a42k8l

Patch: http://www.mediafire.com/?krufjji7ksnmsfu

EDIT: New Version seems working now





[attachment deleted by ninja]
« Last Edit: September 04, 2011, 03:20:56 pm by Valathil »
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Transparent Texture fix
How come you aren't rendering the buffers with their submodel transformations?

 

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Re: Transparent Texture fix
grr irc says its not working anyway and yeah swifty your right.

EDIT: Weekend Project cause i have work tomorrow. Look here on Saturday or Sunday for progress
« Last Edit: September 01, 2011, 03:07:11 pm by Valathil »
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Transparent Texture fix
:bump: for great justice. Look at dat picture, and explode in joy.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Commander Zane

  • 212
  • Spoot Knight of Anvils
Re: Transparent Texture fix
Oh. My. God. :eek:

 

Offline Sab0o

  • 26
Re: Transparent Texture fix
**** year

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Transparent Texture fix
il check it against the dante, it had transparent textures (the fighterbay "forcefields" and the secondary beam cannons) that i never got around to removing.

to words:

**** yea!

does this mean we can stop putting cockpit glass in another bitmap, and make cockpit interior part of the hull?
« Last Edit: September 06, 2011, 08:54:38 am by Nuke »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
Re: Transparent Texture fix
Boo-freaking-yah!!!! :D :D :D You are an awesome person.

So is there anything on the model level we have to do to take advantage of this? And since I'm pretty awful at reading code, what did you change? How does it work? I've been hoping for something like this for years!

Btw, Nuke: Not so sure about the former (since I prefer to just reuse the nice existing glass textures), but the latter we have definitely already been able to do that all along. Separating the glass parts of the ship and calling them 'detail0-trans' before the PCS conversion basically reattached the glass polies and ensured they were last in the list to be rendered, and would therefore render correctly. :)
Get the 2014 Media VPs and report any bugs you find in them to the FSU Mantis so that we may squish them. || Blender to POF model conversion guide
Twisted Infinities

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Transparent Texture fix
I talked to him on IRC about what goes on here. Basically, from what I understand if a poly has a texture with the -trans flag it is pushed to the end of the list to render.

The diffuse map from the transparent poly would be 'blahblah-trans' instead of just 'blahblah'. The other maps work as expected but will need to be 'blahblah-trans-glow'.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Re: Transparent Texture fix
basically what mixael said but i want to add whats different to the pcs -trans thing. pcs only orders it last in that submodel. i save the polys thill everything solid was rendered, so even if the transparent polies are in a sub sub sub sub rotating sub rotating submodel they would render at the end after everything with correct orientation and everything

EDIT: Comitted 7657
« Last Edit: September 06, 2011, 12:18:11 pm by Valathil »
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Transparent Texture fix
Thanks to this awesome little fix.. I can do this without even bothering with the model hierarchy. http://www.youtube.com/watch?v=YeajBT68XNI
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: Transparent Texture fix
So I did a little test with mjn's GTDr Phidias.  I renamed the phidflame texture (and all of its frames) to phidflame-trans.eff/phidflame-trans_xxxx.dds.  Unfortunately, it didn't work as well as I had hoped, and the positional data of the thruster subobjects is apparently being ignored.

Here's a screenshot:
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!