TresCom Forums

TresCom : The Trespasser Fan Gateway...
It is currently Wed Oct 23, 2019 12:47 am

All times are UTC




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: Sun Dec 25, 2011 9:14 pm 
Offline
Compsognathus
Compsognathus
User avatar

Joined: Fri Jan 04, 2008 12:14 am
Posts: 1066
Location: Switzerland
Rewrite of the exporter to work with Blender 2.6 . This script exports models into trespasser formats. Supports writting TPM files as well as values.txt files. Also adds UI elements to configurate the export easily (so no need anymore for Text-block hacks as in 2.49). For the individual types of meshes a basic set of values is exported. For meshes, physics meshes, invisible meshes and magnet meshes parenting as well as configuration values are taken into consideration to produce more useful default values.txt files.

Grab it over at ModDB (you might have to wait a few hours for the download to be authed): Blender 2.6 Trespasser Exporter 1.0

I'll do the importer next after I got something else done first.

EDIT: Important changes:
- no more Text-block configuration (uses now Blender 2.6 UI panel extensions)
- no $-hack required anymore (Blender 2.6 allows now $ in names)

_________________
Image
Leader, Head Programmer: Epsylon | Drag[en]gine ( Wiki )


Top
 Profile  
 
PostPosted: Sun Dec 25, 2011 10:10 pm 
Offline
-=TresCom Developer=-
-=TresCom Developer=-

Joined: Mon Dec 12, 2011 11:54 am
Posts: 496
Location: Australia
Nice work!

_________________
http://www.trespassingpetrolia.com/
http://www.flickr.com/photos/trespassingpetrolia/


Top
 Profile  
 
PostPosted: Thu Dec 29, 2011 8:01 pm 
Offline
Gallimimus
Gallimimus
User avatar

Joined: Fri Nov 27, 2009 8:28 pm
Posts: 579
Location: England, UK
Thanks for this, I've been meaning to get round to doing more Blender stuff recently...

_________________

Image
AUDIO PROJECTS // AnneAudioAdventure / Anne&Hammond
RESOURCES // Music List


Top
 Profile  
 
PostPosted: Thu Dec 29, 2011 9:24 pm 
Offline
Compsognathus
Compsognathus
User avatar

Joined: Fri Jan 04, 2008 12:14 am
Posts: 1066
Location: Switzerland
I forgot to write something into the README. Blender 2.6 has a bug in the exporter code which causes file patterns with a dot in it (aka .values.txt ) to explode the file path while changing directories. To counter this the file pattern in the exporter is ".values_txt". The exporter does though replace the "_" before exporting so if you export to bla.values_txt it actually writes to bla.values.txt . Just so you are not surprised what's going on there.

_________________
Image
Leader, Head Programmer: Epsylon | Drag[en]gine ( Wiki )


Top
 Profile  
 
PostPosted: Sun Jan 01, 2012 11:04 pm 
Offline
Gallimimus
Gallimimus
User avatar

Joined: Thu Dec 25, 2008 10:04 pm
Posts: 582
Location: Denmark
Sounds great! That'll come in handy :-)

_________________
Yes, my avatar is indeed a dino cookie.


Top
 Profile  
 
PostPosted: Tue Jun 19, 2012 4:19 pm 
Offline
Stegosaurus
Stegosaurus

Joined: Thu Jun 14, 2012 8:22 am
Posts: 70
Is there an importer plugin to go with the exporter?


Top
 Profile  
 
PostPosted: Tue Jun 19, 2012 7:54 pm 
Offline
Compsognathus
Compsognathus
User avatar

Joined: Fri Jan 04, 2008 12:14 am
Posts: 1066
Location: Switzerland
Not yet but it would be possible to make one since the file formats are not too complicated. In the mean time export from TresED to 3DS and import this file using the 3DS importer existing in the default blender installation.

_________________
Image
Leader, Head Programmer: Epsylon | Drag[en]gine ( Wiki )


Top
 Profile  
 
PostPosted: Wed Jun 20, 2012 6:41 am 
Offline
Stegosaurus
Stegosaurus

Joined: Thu Jun 14, 2012 8:22 am
Posts: 70
I don't have access to 3ds unfortunately.

Being a programmer rather than an artist I was actually wondering about directly extracting from the swp file (or even the compressed data files now the source is available) and automatically generating rigged CryEngine models (as again the animation data is apparently part of the engine).

I need to do some experimentation and see how the rigging is performed. Is there source for TresEd? It would be nice to not need to rewrite the extraction routines.


Top
 Profile  
 
PostPosted: Wed Jun 20, 2012 8:22 pm 
Offline
Compsognathus
Compsognathus
User avatar

Joined: Fri Jan 04, 2008 12:14 am
Posts: 1066
Location: Switzerland
TresED exports to 3DS besides a TresED specific format (an ASCII format). You can import this then in Blender using the internal importer module. With TresED you can by the way export an entire map into a single tpm file with one export step. Hence you could write a python script or whatever fits your plans to mass export each object from this huge tpm file into something CryEngine can handle. A mass import into Blender would though be interesting too. I'm just short on time the next couple of weeks due to work at the company but otherwise I could maybe hang my nose in there to add import code to the blender scripts. I just have to fix the exporter first though since the blender API changed once again and broke texture coordinates.

_________________
Image
Leader, Head Programmer: Epsylon | Drag[en]gine ( Wiki )


Top
 Profile  
 
PostPosted: Tue Oct 08, 2019 11:15 pm 
Offline
Parasaurus
Parasaurus

Joined: Sun Jul 15, 2012 6:40 am
Posts: 30
so there's no tmp import script for blender? how do i convert these tmp files to something that is readable by blender?


Top
 Profile  
 
PostPosted: Tue Oct 08, 2019 11:22 pm 
Offline
T-Rex Killer
T-Rex Killer
User avatar

Joined: Mon Dec 06, 2004 5:21 pm
Posts: 11757
Location: Portland, OR
Hold out for others to answers.. but, worst case, TresEd can export models as 3DS, a very versitile format. Just note that, it tends to corrupt models at the same time.

_________________
Image
Image Image T-Script Reference / Trespasser Millennium / JP Dark Secrets / Tres File Box


Top
 Profile  
 
PostPosted: Wed Oct 09, 2019 11:02 am 
Offline
Parasaurus
Parasaurus

Joined: Sun Jul 15, 2012 6:40 am
Posts: 30
Draconisaurus wrote:
Hold out for others to answers.. but, worst case, TresEd can export models as 3DS, a very versitile format. Just note that, it tends to corrupt models at the same time.

that's exactly my problem. I'm trying to do something. I want to combine all the maps into one big island like some people have done before, but when I try to export the terrain as 3ds, half of the terrain is missing

Edit: so I figured it out. good thing I downloaded a trial version of 3ds max 8 yesterday. so in case someone needs to import TPM files from TresEd, this is what you need to do.



1. you need a trial version of 3ds max. get either import or export script from this thread https://www.trescomforum.org/viewtopic.php?f=9&t=5680

2. if you run into this error "Runtime Error: Out of scripter memory- use options to increase", follow these instructions

Quote:
3dsmax sets aside a set amount of memory for use in scripts, the import plugin you are using is one such script. Load the Listener window (press F11) type "heapsize" and push enter and it will show how much memory is being allocated for use in scripts.

To increase, type "heapsize += 10000000" where 10000000 is the amount of bytes to increase by. You can't decrease, reloading 3dsmax will set the assigned memory to default


done


Top
 Profile  
 
PostPosted: Wed Oct 09, 2019 4:34 pm 
Offline
-=TresCom Website Manager=-
-=TresCom Website Manager=-
User avatar

Joined: Fri Jun 24, 2005 9:40 pm
Posts: 3793
Location: Sweden
Note: You can do it with a trial version of any Max. The latest one work fine as well and doesn't require the heapsize tweak.

And as for the Blender Importer. Yes, sadly it apparently only work on one specific version, and even then it doesn't appear to work properly.

_________________
"...there used to be more benches, but InGen's workers removed them during the evacuation in the name of framerate."

"The main laboratory and administrative buildings. This is where we made our work, where the real magic trick happen. When they are in need of height fixing, they'll come here." - Hammond


Top
 Profile  
 
PostPosted: Wed Oct 09, 2019 9:04 pm 
Offline
Parasaurus
Parasaurus

Joined: Sun Jul 15, 2012 6:40 am
Posts: 30
yeah but I didn't feel like downloading an 8gb program just to convert some files. 3ds max 8 was perfectly enough to get it done and that heapsize issue was just a minor inconvenience :) as to blender TPM importer, I wasn't aware there is one. all I knew is that there is a script for exporting TPM


Top
 Profile  
 
PostPosted: Thu Oct 10, 2019 3:19 am 
Offline
-=TresCom Website Manager=-
-=TresCom Website Manager=-
User avatar

Joined: Fri Jun 24, 2005 9:40 pm
Posts: 3793
Location: Sweden
Double_G wrote:
yeah but I didn't feel like downloading an 8gb program just to convert some files. 3ds max 8 was perfectly enough to get it done and that heapsize issue was just a minor inconvenience :) as to blender TPM importer, I wasn't aware there is one. all I knew is that there is a script for exporting TPM


Oh maybe it is the Exporter I meant, I've never used it so I am probably mistaken that it was an importer. :D

_________________
"...there used to be more benches, but InGen's workers removed them during the evacuation in the name of framerate."

"The main laboratory and administrative buildings. This is where we made our work, where the real magic trick happen. When they are in need of height fixing, they'll come here." - Hammond


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 46 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group