Problem with shadow in-game

Problem with shadow in-game

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

Post Reply
User avatar
tyran_nick
Posts: 47
Joined: 07 Mar 2010, 12:42

Problem with shadow in-game

Post 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!
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Problem with shadow in-game

Post by smoth »

Nope. Post the model files so some can help you.
User avatar
tyran_nick
Posts: 47
Joined: 07 Mar 2010, 12:42

Re: Problem with shadow in-game

Post 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!
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Problem with shadow in-game

Post 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!
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Problem with shadow in-game

Post by knorke »

sounds more like your graphics card/driver does not like new spring version. Are units in other mods black too?
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10453
Joined: 24 Jan 2006, 21:12

Re: Problem with shadow in-game

Post by PicassoCT »

Normals. I had this too.
Load it into upspring and invert the normals.
User avatar
tyran_nick
Posts: 47
Joined: 07 Mar 2010, 12:42

Re: Problem with shadow in-game

Post by tyran_nick »

It was the normals, thanks!
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10453
Joined: 24 Jan 2006, 21:12

Re: Problem with shadow in-game

Post 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!
User avatar
tyran_nick
Posts: 47
Joined: 07 Mar 2010, 12:42

Issues with translating from spring 82 to 94

Post 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.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Problem with shadow in-game

Post by CarRepairer »

User avatar
tyran_nick
Posts: 47
Joined: 07 Mar 2010, 12:42

Re: Problem with shadow in-game

Post 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
Post Reply

Return to “Art & Modelling”