Quick Q.

Quick Q.

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Erom
Posts: 1115
Joined: 25 Apr 2006, 05:08

Quick Q.

Post by Erom »

Hey guys, what should I be trouble shooting if I've created a new unit with a working script, weapons fire, has an s3o model, but when I build it in game it is invisible? The engine effects and weapons spawn fine, but the model of the unit itself is totally absent.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

1. Ensure your s3o has a radius and height set.

2. If using a second texture, make sure that alpha on it is blank.


It's more than likely 1.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

Happened to me too, and afaik it was 1.
User avatar
Erom
Posts: 1115
Joined: 25 Apr 2006, 05:08

Post by Erom »

It was 1, thanks so much guys. Appreciate it.

EDIT: I got it working, but I've found a fun new problem. This picture demonstrates the issue nicely.

Image

When zoomed in, I see the unit perfectly (the said unit is crap, I know that. It's just a test unit.) When I zoom out even slightly, it turns to two little tiny grey boxes (which were not present in the model). This occurs long before icons kick in.

Any advice?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Ditto 1, but I figured it out.

edit:
Yeah run settings and increase "Unit LOD" to some reasonable value.
Last edited by rattle on 14 Jul 2007, 19:14, edited 1 time in total.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

It's probably so small the LOD kicks in.
User avatar
Erom
Posts: 1115
Joined: 25 Apr 2006, 05:08

Post by Erom »

I get it. Because the thing is only 4 polys, when LOD kicks in and removes a few points, the thing basically disappears.

Hmm. Even when I set LOD to max, the thing still goes plonk long before icons kick in. Oh well, at least I know how to deal with it now: either increase the polycount of the model or modify the icon to appear really early for these units. Thanks for all your help everyone!
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Nope, polygon counts have nothing to do with it. Spring doesn't have a poly rweduction algorithm. It uses images of the unit drawn as a sprite, though I don't think it'll work with s3os.
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Post by Pressure Line »

KDR_11k wrote:Nope, polygon counts have nothing to do with it. Spring doesn't have a poly rweduction algorithm. It uses images of the unit drawn as a sprite, though I don't think it'll work with s3os.
it doesnt, not very well anyway. i notice it with my aircraft (which are at least as large as my tanks) that they turn into a shapeless grey blob when they get too far away, even though the tank sitting next to it looks fine. (the tank being about 400 polys, the helicopter being about 700)
User avatar
Erom
Posts: 1115
Joined: 25 Apr 2006, 05:08

Post by Erom »

For anyone else who has this problem later, the distance is proportional to the radius of the unit, I had mine set rather small, and making it bigger pushed the LOD threshold out past the iconization threshold. I'll feed the wiki.
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Post by Pressure Line »

thought so, my plane spheres are still quite small, they need a revisit
Post Reply

Return to “Game Development”