Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Billboard Creation on Dedicated Server #155

Closed
DavidWyand-GG opened this issue Nov 26, 2012 · 1 comment
Closed

Billboard Creation on Dedicated Server #155

DavidWyand-GG opened this issue Nov 26, 2012 · 1 comment

Comments

@DavidWyand-GG
Copy link
Member

Originally from this post: http://www.garagegames.com/community/forums/viewthread/132085/1#comment-836505

This probably isnt the best thread for this, but I know some of you are working with linux dedicated server so maybe this will help. I dont know if it has been fixed since i last merged in changes from the T3D dev branch for linux dedicated server but there is a bug with the Forest object and NULL GFX device. The actual bug has to do with imposters which the forest object uses. If you look in ts/tsShapeInstance.cpp in the function void TSShapeInstance::buildInstanceData(TSShape *_shape, bool loadMaterials) at the very end you will see:

if (loadMaterials && mShapeResource)   
    mShape->setupBillboardDetails( mShapeResource.getPath().getFullPath() );

The issue is that setupBillboardDetails should not run on a null GFX device (and the other time it is ran, there is a check for that)

So to fix it just change the code to this:

if (loadMaterials && mShapeResource && GFXDevice::devicePresent())   
    mShape->setupBillboardDetails( mShapeResource.getPath().getFullPath() );

-Tim

@DavidWyand-GG
Copy link
Member Author

Fixed on development branch.

Azaezel pushed a commit to Azaezel/Torque3D that referenced this issue May 17, 2020
expose explosion.initialnormal to script for fine grained directional control
lukaspj pushed a commit to lukaspj/Torque3D-Old that referenced this issue Oct 2, 2020
expose explosion.initialnormal to script for fine grained directional control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant