PDA

View Full Version : Adding prim_states


grundge69
09-10-2008, 03:21 PM
I have been going through shapes files to add night effects, i.e. lit up windows at night. I go through the shape file and added a vtx_state and a prim_state:

vtx_states ( 2
vtx_state ( 00000000 0 -5 0 00000002 )
vtx_state ( 00000000 0 -8 0 00000002 )
)
prim_states ( 2
prim_state Box_SolidNorm ( 00000000 0
tex_idxs ( 1 0 ) 0 0 0 0 1
)
prim_state Box_SolidBright ( 00000000 1
tex_idxs ( 1 0 ) 0 1 1 0 1
)
)


That being done, do I have to change something in the vertices:vertex in order to point at the prim_state or vtx+state? And if so, what is it?
Codeman

Vince
09-12-2008, 03:02 PM
http://forums.flightsim.com/vbts/showthread.php?t=265196

Noisemaker
09-13-2008, 12:20 AM
Grundge, are you doing this with models that don't have night textures already? I can understand your code well, and was hoping modifications could be done in the .S file.
As Vince showed you, I asked the question and got hit with 'the guru's of graphics' who definately know their stuff - but is all martian to me. Would be nice to add night textures to some things, but more so I'd like to turn off the glaring brightness of others.
The buildings and vegetation that look like they're under a police spotlight at 21:30.
I'm hoping there's a 'off' switch, or something to make them even a silhouette after sundown in the code?

If you could elaborate a little more, I'd greatly appreciate it. ;)