Jump to content

Vechicle model problem


VeTaL
 Share

Recommended Posts

First problem: this model loads without warnings, but i cant see textures.

 

Second problem: i load this car with

AddVehicleTire(_car,Vec3(-1,0,1.7),0.5,-0.4);
AddVehicleTire(_car,Vec3(1,0,1.7),0.5,-0.4);
AddVehicleTire(_car,Vec3(-1,0,-1.4),0.5,-0.4);
AddVehicleTire(_car,Vec3(1,0,-1.4),0.5,-0.4);

car is jumping like swiming on the sea

Working on LeaFAQ :)

Link to comment
Share on other sites

not sure exactly if this is the problem, but you have some mat files that do not have a texture associated at all in them... you also have several mat files that are using the diffuse_bumpmap frag shader but just using the diffuse vert shader with them... and you have some mat files that using mesh.vert and mesh.frag... with no diffuse texture being assigned... And this might not be a problem at all, but I have had trouble in the past with other applications using special characters in file names... you have several mat files using the number sign, #, and parenthesis, (), in the names...

 

with this many surface materials, its hard to say what is screwing them up... you might have better luck just exporting a small section of the model that only has a couple of materials/textures associated with them and attempting the material files that way... I would strongly suggest you try using Icare's ADN material editor so you can see the proper way to create material files for your model.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

look at the parameters for the AddVehicleTire()... you are possibly just using the defaults for the spring constant and damping... or perhaps a zero is being written to them... i would try to set it up like the the example vehicle in the editor, the viperscout, where the spring constant and damping is set at 20 and 150, respectively... then make changes from there to get something you like...

 

also... it looks like the suspension length is being set to a -0.4? I would have thought this needed to be a positive number... i dunno... B)

 

and one thing i see different is that the viperscout is using TFormPoint for the position of the tires...

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

What about the viperscout scripts?

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

What a strange: when engine generates phy-files for static buildings (like tower: i just deleted phy-file of the tower, so engine generates new one) - its okay.

But when i delete vehicle_monstertruck.phy so engine would generate new one - car is just floating in the air.(http://leadwerks.com/werkspace/index.php?/topic/2653-vechicle-model-problem/page__p__24495__fromsearch__1#entry24495)

Working on LeaFAQ :)

Link to comment
Share on other sites

The PHY file auto created by the engine is for static objects. You would have to use phygen or obj2phy. Now the viperscout is working just fine. If its not for you, then I suspect you have done something strange. What version are you using? When you download a new version, do you overwrite or do you do a fresh install? You didn't delete the PHy file for the viperscout did you?

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

You must set the entitytype of the car's model body to something which doesn't collide with the vehicle body. The flying is caused by a overlapping collision of two physics bodies.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...