FSIC Messageboard
  Tech Talk
  changing an .inta reference to a tif

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   changing an .inta reference to a tif
Yardstick
Pilot
posted 02-08- 07:27 PM     Click Here to See the Profile for Yardstick   Click Here to Email Yardstick     Edit/Delete Message   Reply w/Quote
I am putting a pack together that will give people the option to add more realistic gunsight reticules into the game. I have created replacement textures for most of the gunsights that I want but have run into a problem with the British fighters. These use the Gunsight3.sm file which uses the sightglass2.inta texture (all the other gunsights use alpha tif files). If I change the reference in Gunsight3.sm to sightglass2.tif, I can correctly view my new texture in OPS. However when I run the game the texture is not transparent as it should be but is a solid block of yellow. How or what do I change to get the tif to show up?

------------------
Yardstick painted this

[This message has been edited by Yardstick (edited 02-16-2001).]

IP: Logged

JG3_Jetlag
Pilot
posted 02-08- 07:50 PM     Click Here to See the Profile for JG3_Jetlag   Click Here to Email JG3_Jetlag     Edit/Delete Message   Reply w/Quote
Oo-er, not often you find me posting in here

I think you need to change the texture flags in the .sm file for the new texture. I can't remember 'cos it was so long since I looked at one. Perhaps examine a .sm file with a know transparent texture and note the value of the texture flags, the change them in the new .sm file. I think I used Hippie's OL tools to do this. I think!

Not a great help, huh, Yard

IP: Logged

Sv
Pilot
posted 02-09- 02:32 AM     Click Here to See the Profile for Sv   Click Here to Email Sv     Edit/Delete Message   Reply w/Quote
Yes, I think you just need to change the texture flag to use the alpha instead of what it is now. I think an inta file is an alpha only file with no RGB - and has a flat color assigned at the poly level. Essentialy, this just saves texture memory.

Just copy the flag (inthe .ol file) from an existing alpha texture and apply it to your new .tif texture entry.

------------------
-Sv

Wings with Wires

IP: Logged

Yardstick
Pilot
posted 02-09- 08:53 AM     Click Here to See the Profile for Yardstick   Click Here to Email Yardstick     Edit/Delete Message   Reply w/Quote
This was my first thought, I compared the properties for the other sightglass tifs (for some reason the British gunsight3.sm is the only one to use an inta file) and they looked identical. However I will go back and double check.

------------------
Yardstick painted this

IP: Logged

Yardstick
Pilot
posted 02-16- 09:56 AM     Click Here to See the Profile for Yardstick   Click Here to Email Yardstick     Edit/Delete Message   Reply w/Quote
I tried all sorts of combiinations of in the texture flags to get this to work last night. I can see the alpha tif no problem, in OPS but in game it is an opaque square. In the past, if I mistakenly left 2 masks in the alpha channel it would cause this problem, but I have double checked and the texture references are perfect.

The really weird thing is that the British gunsight.sm and gunsight2.sm files use the same sightglass2.inta texture (these are the front and top turret reflector sights on the Lanc). I have changed these to reference to the new sightglass2.tif I created and they work in the game. But doing the same thing for gunsight3.sm (used by all the British fighters) causes the above problems.

Are there any OPS gurus who fancy looking at this for me please?

------------------
Yardstick painted this

IP: Logged

Bryan Russell
Pilot
posted 02-16- 10:08 AM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
Did you try setting the texture type to RGBA in the texture details panel? I could be wrong but a setting of A (i,e, the same as a INTA file) may read one of the colour bytes as alpha.

Your texture is right, which is why it shows up in OPS, so its just a matter of the flags. I'm pretty sure only the RGB/RGBA/A flags have any effect on transparency.

Also, make sure that the size is right, OPS uses the size from the actual texture, SDOE uses the texture prop setting.

------------------

Wings with Wires

IP: Logged

Yardstick
Pilot
posted 02-16- 07:47 PM     Click Here to See the Profile for Yardstick   Click Here to Email Yardstick     Edit/Delete Message   Reply w/Quote
Woohoo, thanks Brian, all it needed was a tick against the RGBA flag. Now I can finish my gunsight project

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c