#1 2014-06-09 15:39:15

tima_gt
Member

How to export 3D models from blender

I was exported a 3D model to .obj, write this in models config
paste model in my map and i can't see 3D model not loaded

Offline

#2 2014-06-29 15:29:44

rasteron
Member

Re: How to export 3D models from blender

Hey there,

Try following the format of other example models so you can get a handle on how they are setup and properly loaded in the engine.

You also need to add an entry to the default_map_models.cfg file located in your config folder. Check out the existing list index for reference.

Hope that helps.

Offline

#3 2014-06-29 15:42:55

Calinou
Moderator

Re: How to export 3D models from blender

As the beginning of default_map_models.cfg says:

// Notice: This list is dynamic and will change with every release.
//         Please use a dedicated map.cfg.

Do not edit default_map_models.cfg to add your own models there; this is asking for trouble (it'll break when it's updated in the release).

Instead, use a map .cfg file. You can edit it in-game by typing /notepad, then media/map/mapname.cfg in the top field (which will set the file to edit).

The line you need to add is something like mapmodel "path/to/model/directory/from/media/model/mapmodel".

Last edited by Calinou (2014-06-29 15:43:33)

Offline

#4 2014-07-25 08:25:16

tima_gt
Member

Re: How to export 3D models from blender

3d model config file:
objload sword.obj


mdlscale 100.5
mdlcollide 1
mdlspec 100
Screenshot from editor:
01d21dcf79be.png
screenshot from tesseract:
4c2d860f02ee.png

Offline

#5 2014-07-25 08:53:38

Calinou
Moderator

Re: How to export 3D models from blender

You should probably limit your FPS to something like 61 using /maxfps 61, I doubt you have a 220 Hz screen.

Offline

#6 2014-07-25 12:31:41

RaZgRiZ
Moderator

Re: How to export 3D models from blender

Calinou wrote:

You should probably limit your FPS to something like 61 using /maxfps 61, I doubt you have a 220 Hz screen.

That is irrelevant to the issue..

Offline

#7 2014-07-26 00:08:37

Nieb
Administrator

Re: How to export 3D models from blender

Can you upload the exported model with cfg file.

Offline

#8 2014-08-29 07:53:01

tima_gt
Member

Re: How to export 3D models from blender

Now 3D model shows, but texture is not
8a13b1e827fa.png
Archive with 3D model here:
https://yadi.sk/d/ufv6uDjradCN5

Offline

#9 2014-08-29 07:54:32

tima_gt
Member

Re: How to export 3D models from blender

How to load multitexture?

Offline

#10 2014-08-31 23:27:33

Nieb
Administrator

Re: How to export 3D models from blender

Textures must be PNG, JPG, TGA format.  Texture dimensions must be power of 2 (32,64,128,256,512,1024,etc).

For multi-texturing, you can assign textures to different meshes.

objload model.obj

objskin mesh1 texture1.png
objbumpmap mesh1 texture1_normal.png

objskin mesh2 texture2.png
objbumpmap mesh2 texture2_normal.png

Offline

#11 2014-09-03 16:27:30

Calinou
Moderator

Re: How to export 3D models from blender

DDS is supported using the <dds> tag. Here's how you use DDS:

objskin mesh1 "<dds>texture1.png"

You specify the name of the fallback texture (.png in this case) and add a <dds> tag before it.

Nieb: textures can be of any size, even non-powers of 2 or uneven numbers, although it is preferable to have power of 2 textures.

Offline

#12 2014-09-03 18:34:18

ImNotQ009
Moderator

Re: How to export 3D models from blender

Calinou wrote:

DDS is supported using the <dds> tag. Here's how you use DDS:

objskin mesh1 "<dds>texture1.png"

You specify the name of the fallback texture (.png in this case) and add a <dds> tag before it.

Nieb: textures can be of any size, even non-powers of 2 or uneven numbers, although it is preferable to have power of 2 textures.

I don't think there's any real point of being so against non power of 2 textures. Well. Besides maybe memory efficiency.
There aren't any Tesseract-capable cards that don't support them.

Offline

#13 2014-09-04 12:39:13

Pritchard
Member

Re: How to export 3D models from blender

I think power of 2 is good because it makes things easier to work with on a "grid" which is what you are doing all the time in Tess.

Offline

Board footer