-
Posts
2,411 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Downloads
Posts posted by SpiderPig
-
-
1 minute ago, JMKUltra said:
The amount of hate you receive is actually a pretty good indication of how successful you are at any given moment.
Yeah, I've noticed that too.
-
I can't see anything obvious either, but would parenting the player to the platform help? I'm not sure how that effects the physics simulation though.
-
I've never used Linux before, but there seems to be a lot of people there who won't even give it a chance.
-
Has pEntity got a collision shape? It looks like the player collides with something invisible sometimes. Turn on DebugPhysics so you can see all the collision shapes.
-
2
-
-
3D Engine
-
Just a few thoughts that may or may not help;
QuoteroadModel:UpdateAABB(Entity.LocalAABB+Entity.GlobalAABB)
Shouldn't it be;
roadModel:UpdateAABB(Entity.LocalAABB | Entity.GlobalAABB)
Unless LUA is different to C++ in this aspect... I see it's commented out here though..
Does surface:Update() update the vertex normals? I'm not sure if that's needed to create a polymesh though...
Only other thing I can think if is too make sure the vertices aren't too close together? I recall something ages ago where this caused a null polymesh for me.
-
4 hours ago, Slastraf said:
surface->Update();
model->UpdateAABB(Entity::LocalAABB | Entity::GlobalAABB);
This should probably outside your loop as well. It won't effect render performance but it will generate the mesh faster as updateAABB() I think loops through all vertices in the model and finds the extents of the mesh for the AABB.
-
1
-
-
4 hours ago, Josh said:
IDEK WTFIGO WATA
I don't even know what the f*** is going on Whats all that about ?
-
I wonder why it hasn't done well here, not as much traffic as Kickstarter?
-
You need to add the force to the entity in the update world loop.
-
You can turn off world gravity and use addforce() per physics object. But it wont work with the character controller, which is sad.
-
For me, I'll never look back at LE4. It's super fast. Can handle so much more scene complexity. Actually I'm under the impression that it will be more documented and supported than LE4. There's a few new things to learn with shared pointers, and the fact the engine is multithreaded. But overall it's pretty rad. For the shader side of things it's not hard to grasp. I'm actually 80% through a node editor for shader development in LE5 which will make it even easier.
-
1
-
-
On 11/21/2020 at 8:03 AM, DoomSlayer said:
More shaders would be great, let's hope Josh make LE5 compatible with LE4 shaders
I've been working with Leadwerks 5 shaders and while LE4 shaders will need converting, the process shouldnt be too hard. Depends on how complex the shader is.
-
2
-
-
I think what I ended up doing was adding another surface to my model in which I added 2 vertices not linked to a triangle. I placed one vertex at the location that I wanted for the AABB's min position and the other vertex at the location that I wanted for the AABB's max position. Then I called Model::UpdateAABB(). I have a feeling this worked but can't be sure.
Another option might be to disable culling;
SetOcclusionCullingMode(false, true);
I'm not even sure if that's the right command. It's been a while since I used LE4.
-
1
-
-
I think this is because the bounding box of the original entity does not include the instance you made in the geometry shader. I recall having the same issue a while back. I can't remember if the bounding boxes in LE4 can be manually adjusted or not...
-
1
-
-
Welcome. Would love to see how it works out.
-
I think the issue above is that your placing a decal at the tire position and rotating it to that of the cars current angle (or the tires angle, I can't quite tell).
An approach I would try is to collect the points under the tires over time. When you have the current point and the last point, you can draw a decal between them. Every frame you can check the distance from each tire to the last point that tire was at. When it is equal to the length of the decal, make a decal between those two points. Place the decal at the first point and rotate toward the second point. In my mind you should get something like this;
-
1
-
-
I do know an algorithm that will calculate the centre of rotation for the car. You could use that centre of rotation and radius to then draw the decals in a circle, but I'm not sure how it will perform if the player is constantly changing directions.
An easier and more accurate way may be to grab each tire position and draw decals on the terrain at those locations. I've not used decals before, how are you drawing the tracks so far? If you show some code I may be able to help more.
-
-
I think there is a command Context::GetCurrent() which should do that.
-
I think you've set player to an Entity type. Try String "Player".
-
Use AlignToVector() to align to the terrain's normal.
-
1
-
-
I think you can play a sound without creating a source. But if you want source you need a Listener, if you dont have a camera just set the position of the listener.
-
1
-
-
For a source to be heard you will need a Listener. I can't be sure, but I think you parent it to the camera. You're probably better off loading your sound and creating the source at the game startup, and just play it on keypress.
-
1
-
Platform issue
in Programming
Posted
If you want you could just add some invisible walls to the platform to stop you falling off. Make some code that enables or disables them depending on what you want to do.