Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Lord Platin on June 21, 2006, 09:36:58 am

Title: yellowish thingies in space (graphics bug?)
Post by: Lord Platin on June 21, 2006, 09:36:58 am
Hi everybody,
I recently started playing FS2 again and got the ShivanSpS-pack, upgraded it all the way as mentioned in his thread.
Everything was fine and I started playing... And after I restarted a mission I got the following:
(http://img53.imageshack.us/img53/268/shot2on.th.jpg) (http://img53.imageshack.us/my.php?image=shot2on.jpg)
I even updated to 3.6.9-RC3 (of course I also used the mediavp-patches provided there) but nothing changed. The first time I did a mission it worked, the second time it started showing me those weird yellow things.
My flags are:
-mod Fs1_port_3,mediavps -spec -glow -env -jpgtga -mipmap -nomotiondebris -2d_poof -missile_lighting -dualscanlines -targetinfo -orbradar -rearm_timer -3dwarp -warp_flash -snd_preload  -ambient_factor 0.85 -spec_exp 11 -spec_point 0.6 -spec_static 0.8 -spec_tube 0.4

So it's not really a problem keeping me from playing fs2 but it's kinda annoying and shouldn't stay in RC-versions ;)

I have an ATI graphics card with the latest Omega drivers. And it's OGL :)


Lord Platin
Title: Re: yellowish thingies in space (graphics bug?)
Post by: Colonol Dekker on June 21, 2006, 09:38:21 am
Death by Frazzles !!!!!!
Title: Re: yellowish thingies in space (graphics bug?)
Post by: Wanderer on June 21, 2006, 09:40:56 am
Disable env mapping.
Title: Re: yellowish thingies in space (graphics bug?)
Post by: taylor on June 21, 2006, 09:47:00 am
The env bug should hopefully be fixed in RC3 actually.  In any case, try the -disable_fbo option and see if that helps any.  If it is still the env bug then that might fix the problem without actually disabling env.
Title: Re: yellowish thingies in space (graphics bug?)
Post by: Lord Platin on June 21, 2006, 10:23:38 am
Disabling env worked, this time I'll try -disable_fbo :)
Title: Re: yellowish thingies in space (graphics bug?)
Post by: Colonol Dekker on June 21, 2006, 10:25:27 am
Almost forgot.

:welcome:

Blah Blah, hands, blah blah, Flamethrowers,
blah, exits left and right, blah enjoy your stay :D
Title: Re: yellowish thingies in space (graphics bug?)
Post by: pecenipicek on June 21, 2006, 10:32:43 am
Almost forgot.

:welcome:

Blah Blah, hands, blah blah, Flamethrowers,
blah, exits left and right, blah enjoy your stay :D
Blah blah blah, no napalm only water. holy or otherwise, blah blah, hyperintelligent shade of blue opening the plasma gun compartmetn, blah blah blah blah blah :p
Title: Re: yellowish thingies in space (graphics bug?)
Post by: Lord Platin on June 21, 2006, 11:09:43 am
-disable_fbo worked as well, so it's probably the mentioned env bug... whatever fbo is ;)
Title: Re: yellowish thingies in space (graphics bug?)
Post by: Colonol Dekker on June 21, 2006, 11:10:44 am
Frickin Blocky Orange (things?)
 :D
Title: Re: yellowish thingies in space (graphics bug?)
Post by: Lord Platin on June 21, 2006, 11:26:43 am
I'd say it's yellow, but you never know... maybe it's some sort of... hyperintelligent shade of blue that is too intelligent to be seen as blue?
Title: Re: yellowish thingies in space (graphics bug?)
Post by: Herra Tohtori on June 21, 2006, 12:07:50 pm
All Hail Interplanetary Constructor race!

The Vogons have arrived!
Title: Re: yellowish thingies in space (graphics bug?)
Post by: taylor on June 21, 2006, 12:35:21 pm
-disable_fbo worked as well, so it's probably the mentioned env bug... whatever fbo is ;)
It's not an env bug, it's a render-to-texture bug.  Well, that's not totally accurate either, it's the fact that ATI drivers suck.  That's the problem.

-disable_fbo just disables render-to-texture, that way you can still use env with the default envmap or a mission specified envmap.  It may not match the actual mission you are in (in the case of the default envmap) but you'll still get the improved lighting and some reflections at least.
Title: Re: yellowish thingies in space (graphics bug?)
Post by: Turambar on June 22, 2006, 06:06:46 pm
btw, could you instruct me on how Render-to-Texture works?

due to BTRL business, i think me and render-to-texture are going to have to be very good friends, and i'd love it if you could introduce us.
Title: Re: yellowish thingies in space (graphics bug?)
Post by: WMCoolmon on June 26, 2006, 12:24:58 am
The basic method is
Code: [Select]
--Get the ship handle
ship = mn.getShipByName("Ship name")

--Get texture handle
tex = gr.loadTexture("newtexture")

--Swap the old texture with the new one with texture replacement
ship.Textures["oldtexture"] = tex

Doing it with a RTT-generated texture is a bit more complex, but uses the same basic method.

Code: [Select]
--Get the ship handle
ship = mn.getShipByName("Ship name")

--Create texture, if needed, and draw to it.
if not tex then
   tex = gr.createTexture(512, 512, "Dynamic")
end

--Set drawing target to the new texture
gr.setTarget(tex)

--Set color to yellow and draw "moocow" on the new texture
gr.setColor(255, 255, 0)
gr.drawString("Moocow", 0, 0)

--Reset render target
gr.setTarget()

--Swap the textures
ship.Textures["oldtexture"] = tex