Blender to MAP exporter

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Postby organic » Thu Aug 27, 2009 4:20 pm

Yes I understand it is still early to be claiming 100% success, but if I could get this exported I would be very pleased as the only other option at the moment is to remodel the whole thing in Radiant, which would be a bit of a nuisance for me.

Anyway it looks like this, they are all simple shapes:-
Image

I have been using the Lightmap UV pack unwrap option, though I got the same error after deleting all(as far as I could tell) the UV layers.
organic
Newbie
 
Posts: 6
Joined: Wed May 06, 2009 12:58 am

Postby z80 » Fri Aug 28, 2009 7:11 am

organic Currently there are problems if model includes faces of zero area. Exporter in such case can't recalculate UV to shift-scale-angle.

As for exactly this model. Well ..... if each step isn't a saparate mesh it's very complex model. It's because the exporter is to section your model into convex parts before exporting brushes to NetRadiant. And I suppose there would be thousands of them in this case. Anyway, I believe, it succeed if you apply treat selected as surf when export to your model before exporting.

I'm going to submit ver 0.12 of the exporter today, it definitely works there. (In version 0.11 also but GUI buttons in 0.11 version don't work properly :( )
Don't use the force, Luke! Try to think!
z80
Advanced member
 
Posts: 92
Joined: Sun Jul 26, 2009 7:35 pm
Location: Russia

Postby z80 » Fri Aug 28, 2009 8:40 am

Version 0.12 http://www.box.net/shared/ioocar3f5q

- GUI interface bug fixes.
- From experimenting I've found out it sections correct concave mesh without holes.

Example how it works:

Image

Image
Don't use the force, Luke! Try to think!
z80
Advanced member
 
Posts: 92
Joined: Sun Jul 26, 2009 7:35 pm
Location: Russia

Postby FraNcoTirAdoR » Fri Aug 28, 2009 11:02 am

I just started learning blender not long ago so maybe its my fault but the exporting isnt working too well, it misses quite lot of faces after the export. :( Also on Win 7 i need admin privileges to run blender to be able to change the export path. I guess its the same in vista.
FraNcoTirAdoR
Alien trapper
 
Posts: 288
Joined: Tue Mar 04, 2008 10:25 am
Location: near the nex

Postby z80 » Fri Aug 28, 2009 11:41 am

--FraNcoTirAdoR-- Yes, you are right! It's impossible to export abitrary meshes set to good enough brushes set, if I've understood you note correctly.

Unfortunatelly, I can't tell anything about working with Blender in Vista or in Windows 7, I even haven't ever seen Vista and Windows 7...
Don't use the force, Luke! Try to think!
z80
Advanced member
 
Posts: 92
Joined: Sun Jul 26, 2009 7:35 pm
Location: Russia

Postby organic » Fri Aug 28, 2009 9:18 pm

I'm back to the float division error :(

File "/home/organic/install/linux2/.blender/scripts/bpymodules/btreemesh.py", line 955, in writeSurf
nx, ny, nz = nx * self.nexify.g_scale / nSz, ny * self.nexify.g_scale / nSz, nz * self.nexify.g_scale / nSz
ZeroDivisionError: float division


No worries though......


EDIT - I can successfully export a single set of steps, but I get errors trying to open or import it in Radiant:-
Image
organic
Newbie
 
Posts: 6
Joined: Wed May 06, 2009 12:58 am

Postby z80 » Sun Aug 30, 2009 4:44 pm

organic First of all, thank you for testing the exporter! I really need such work being done.

Well, I haven't seen the .blend file, but such error might appear if mesh contains zero area faces. If you've got an error when export there is no use trying to open it in NetRadiant. MAP file would be unfinished. I suppose that is the root of opening error.

Anyway, I'll add zero area test into export procedure in the 0.13-th version. After that it should be exported without errors. At least I hope so.
Don't use the force, Luke! Try to think!
z80
Advanced member
 
Posts: 92
Joined: Sun Jul 26, 2009 7:35 pm
Location: Russia

Postby organic » Sun Aug 30, 2009 10:38 pm

z80 wrote:organic If you've got an error when export there is no use trying to open it in NetRadiant. MAP file would be unfinished. I suppose that is the root of opening error.


It exported without error, I tried it with just one of the stairs objects.

What is a zero area face, and how would I have made one?
organic
Newbie
 
Posts: 6
Joined: Wed May 06, 2009 12:58 am

Postby z80 » Mon Aug 31, 2009 11:51 am

organic Zero area face is a face with zero area :) It's easy to make oneif all three vertices lie on one line.
Don't use the force, Luke! Try to think!
z80
Advanced member
 
Posts: 92
Joined: Sun Jul 26, 2009 7:35 pm
Location: Russia

Postby z80 » Mon Aug 31, 2009 12:24 pm

Version 0.13 of the exporter: http://www.box.net/shared/21mh8p6i5r.

- It now skips zero area faces (if there are some).
Don't use the force, Luke! Try to think!
z80
Advanced member
 
Posts: 92
Joined: Sun Jul 26, 2009 7:35 pm
Location: Russia

PreviousNext

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron