The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
.jpk and .joe export with Blender 2.61 - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5)
+--- Thread: .jpk and .joe export with Blender 2.61 (/showthread.php?tid=1588)

Pages: 1 2


.jpk and .joe export with Blender 2.61 - berzingue - 01-14-2012

Hello,

I'm not programmer, just 3d modeler. I would like to develop tracks and cars for Vdrift.
Usually I use 3dsmax and Photoshop but I understand I must use blender for export.

But impossible to make work .jpk and .joe exporters with Blender 2.61.

Can you explain here step by step what I must do ?

What I do : I copy each scripts in Notepad and save it as .py, then I put it in Scripts>AddOn file.
Then I try to activate scripts in Blender (User preferences), but I can't enable scripts, it don't appear.

Thanks a lot for your help...


- NaN - 01-14-2012

Download https://raw.github.com/VDrift/blender-scripts/master/blender25/vdrift.py

Place it into 2.61/scripts/addons.

Enable Import-Export VDrift JOE/JPK format.

Tutorials:
http://www.youtube.com/watch?v=oju-vKVVaho
http://www.youtube.com/watch?v=jDDtv_-jDXI&feature=mfu_in_order&list=UL

Wiki:
http://wiki.vdrift.net/Category:Tracks


- berzingue - 01-14-2012

Exactly what I need. Thanks a lot !! Smile


- NaN - 01-14-2012

For roads you will also need the track editor http://sourceforge.net/projects/vdrift/files/vdrift-trackeditor/

The track creation process is not really streamlined. Feel free to ask questions if something is ambiguous.


- berzingue - 01-15-2012

2 questions :

- What's the best track editor version ? there is 3 versions here...

-How do you assign asphalt, kerbs, grass, sand and wall propreties on a track ?


- NaN - 01-15-2012

Quote:What's the best track editor version ? there is 3 versions here...
I guess you are using a recent vdrift release, then the most recent one.

Quote:How do you assign asphalt, kerbs, grass, sand and wall propreties on a track ?
Assign the objects to the related surface groups. Create surface-x groups if required(ctrl+g).

You can also just import a vdrift track(jpk) into blender to get a better idea. There should be groups matching the surfaces in the surfaces.txt of the imported track.


- berzingue - 01-18-2012

thanks,
I have more questions :

1) how must I assign the surface as collidable ?

2) why I have only 1 textures appear on the track in game ? I made a track with 3dsmax an assign a multimaterial with 6 textures.
(n°1-asphalt, n°2-grass, etc...)
- I export it as .obj.
- I open the .obj in blende :no problems, mesh and 6 textures appears.
-I export as .jpk, open it n blender : only texture n°6 appears on all the mesh...

can you explain me step by step ? I'm newbie with blender...
and blender 2.61 have any differences with version you used on video !


- NaN - 01-18-2012

Quote:how must I assign the surface as collidable ?
You have to add it to the collidable group. In 2.4 ctrl+g.
In 2.6:
[Image: grppr.jpg]

To get the available groups simply export as jpk and re-import.

Quote:why I have only 1 textures appear on the track in game ? I made a track with 3dsmax an assign a multimaterial with 6 textures.
VDrift doesn't support custom materials. You have to provide a diffuse texture.
You can provide material and normal maps. Just call them xxx-misc1.png, xxx-misc2.png.
misc1: rgb: fresnel reflectance value at zero degrees, a: micro-scale roughness
misc2: rgb: normal

Quote:and blender 2.61 have any differences with version you used on video
I'll see if I find some time to create a new tutorial with 2.6


- berzingue - 01-18-2012

Thanks for help, collisions are now working !

I send you any pictures of my textures problem :
1) I modelise and texture diffuses on 3dsmax. Then export as .obj, to see it in Blender
2) In Blender, when file is saved as .obj or .blend, all is looking good, textures are assigned. So I export as .jpk
3) I reload .jbk on blender : only one texture appears...

In list.txt, only 1 texture has been saved during .jpk export...


[Image: 1141570621.jpg]

[Image: 1141570685.jpg]

[Image: 1141570716.jpg]


- NaN - 01-18-2012

Looks like a bug. Can you upload the blend file (with External Data/Pack into .blend file)?


- berzingue - 01-18-2012

I've uploaded, but problem stays the same...

can you have a look on it ?

here is a link to download my track :

http://dl.free.fr/rgTpEdiWu

it contains .obj, .blend, .jpk files, textures...


- NaN - 01-18-2012

OK got it. Switch into edit mode "tab" and split mesh "p" by material. You will get 6 objects. With one texture per object. This should export and will also allow you to assign different surfaces to each object(asphalt, gravel, grass).


- berzingue - 01-18-2012

It works ! exept 1 object, the track.

in blend, there is mesh, mesh.001, mesh.002, mesh.003, mesh.004, mesh.005

when I export as .jpk, the "mesh" file diseapear.
I named it as mesh.000 but it still diseapear !!


- NaN - 01-18-2012

It doesn't disappear it is empty(no vertices). For some strange reason it worked for me the first time I tried. Now it doesn't. Looks like the split function in blender is buggy, sigh.
It has problems to separate the starting line from the road I think. You'll have to do it manually I guess(select and split). Your target is to have one material/texture per mesh.


- berzingue - 01-18-2012

Blender accepts 5 textures on the 6 I assigned !

For now It's ok for me : My goal for me was to learn how import tracks correctly in Vdrift.

Thanks for the help !