Page 1 of 1

Problem with shadow in-game

Posted: 12 Apr 2013, 17:54
by tyran_nick
I am trying to resurrect some old models from a spring 82 mod to spring 94. In the old version the model was working fine. In the new version when I set shadows = on, at spring preferences, I get a black model in-game. If I set shadows = off then the model is fine.

I tried adjusting the green channel in my second texture, but to no avail.
I even tried using a texture from another model (I changed the textures in upspring - dimensions match, and the texture is not black!) that works fine in spring 94, but I still get a black model.

Any ideas?

Thanks!

Re: Problem with shadow in-game

Posted: 12 Apr 2013, 20:53
by smoth
Nope. Post the model files so some can help you.

Re: Problem with shadow in-game

Posted: 12 Apr 2013, 21:56
by tyran_nick
I ve uploaded two models (s3o, textures and scripts, unit defs just in case).

https://www.dropbox.com/s/eiikr8t74kboid7/models.zip

Thanks!

Re: Problem with shadow in-game

Posted: 12 Apr 2013, 22:26
by smoth
Lol. Well I can't really help(about to go jump into the jungle and internet gets expensive in new guinea. But maybe some else can. Best of luck!

Re: Problem with shadow in-game

Posted: 12 Apr 2013, 22:40
by knorke
sounds more like your graphics card/driver does not like new spring version. Are units in other mods black too?

Re: Problem with shadow in-game

Posted: 13 Apr 2013, 00:03
by PicassoCT
Normals. I had this too.
Load it into upspring and invert the normals.

Re: Problem with shadow in-game

Posted: 13 Apr 2013, 03:50
by tyran_nick
It was the normals, thanks!

Re: Problem with shadow in-game

Posted: 13 Apr 2013, 13:31
by PicassoCT
hurray, world notice my advice was usefull once! Although it was not my advice in the first place. Thanks goes to devs, who regularly sort this sort of "moddev-bugs" out of the mantis prayers.


Report bugs, they would report you if they could!

Issues with translating from spring 82 to 94

Posted: 13 Apr 2013, 17:42
by tyran_nick
I noticed that when I put the unit definition flag: 'hoverattack = true'
the default state of a gunship becomes to stay airborne. Is there another flag to retain gunship functionality but force landing at the end of the attack? -- Ignore this! It was lua script hidden somewhere

I have been translating untidefs, weapons and features into Lua. I ve made a matlab (thats what I feel comfortable at programming!) script to convert fbi unit definitions automatically to lua. I couldn't do it for weapons, since there is no 1 to 1 equivalence. If anybody is interested, I am happy to share, or run the script for you.

Re: Problem with shadow in-game

Posted: 14 Apr 2013, 22:23
by CarRepairer

Re: Problem with shadow in-game

Posted: 15 Apr 2013, 18:23
by tyran_nick
That's neat!
I guess my approach is useful if you don't want to pack the units in a mod, but that shouldn't be too difficult