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

Thu Jul 30, 2009 4:36 pm

  • Thanks a lot z80 for the clarification! Now I used bool sun property and it worked great! The only thing I don't understand is "material" string property:why should I use a property for a shader if just linking to a texture the engine finds the shader?

    For the tutorial is decided: I'll start tonight and, if you want, before releasing, I could send it to you by mail and then, if everything is correct, publish it on a web space. If nexuiz community should take in consideration the idea of create a "docs" section, maybe it could go there!
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Thu Jul 30, 2009 6:39 pm

  • toneddu2000 Concerning texture property it is for the reason when shader name doesn't coincide with Blender texture name. If it coincides, when it's O'Key and "texture" property isn't need.

    And on tutorial. It would be great! But I'll be unavailable till next Monday. So when you finish, please mail me. I'll look it through and reply.

    Thank you for cooperation it significantly decreases development time!
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Sun Aug 02, 2009 7:12 pm

Sun Aug 02, 2009 11:53 pm

Mon Aug 03, 2009 5:40 am

  • There appeared to be a problem when one tried to export meshes without materials.
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Tue Aug 04, 2009 10:17 am

  • There's a problem that I would like to clarify about an exporter feature: Scale factor. I'm writing the exporter tutorial and I creating a paragraph about units and measures compared between blender and radiant. I've first created in netradiant a map 256 x 256 x 192 then I exported it to .obj and, in blender, I created a similar box with very similar dimensions ( I avoided .000 float numbers for human readability ). Now, if I export this map with scale factor set to 32, of course, it makes the the map bigger, then I tried 8 multiplies ( 32,16, 8 ) and then I found that 8 was smaller than the orginal and I chose 10. Infact scale factor to 10 makes the map perfect fit to the original, BUT (if there wasn't a BUT, how life would life seem so sweet ? :D ) the exporter shrinks a vertex of a cube that I put for test inside the four walls.

    Here's what I mean

    Image

    What could be the problem? Should I use a 8 multipy scale factor?
    Thanks in advance, as always :D
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Wed Aug 05, 2009 6:41 am

  • toneddu2000 I don't know exactly what the problem is. But first guess is it is associated with rounding of floating point numbers to integers before export. I suppose it might be that number is 15.49999999 or 15.500000001. In first case it would be 15 and in the second 15+1 = 16.
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Wed Aug 05, 2009 9:31 pm

  • I didn't understand very well your answer but tomorrow I'll try! The weird thing is that with scale factor to 8 or 16 or 32 the two vertices don't move but with scale factor to 10 they move. Is possible that is due to scale factor and 8 multiplies and not to rounding of floating point numbers?Anyway thanks, for tomorrow afternoon (I hope!) I'll send you by mail a rough version of the exporter manual! :D
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Sat Aug 08, 2009 10:56 pm

  • I've mailed you a copy of the tutorial. I hoped you could find useful! It's very incomplete and (I guess) not - 100% coherent, but we can modify it when we want! :D
    Let me know if it's presentable to public! :D
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Fri Aug 14, 2009 10:25 am

  • 0.07 version of geometry exporter for Blender to NetRadiant. I would be very appreciate to anyone who tests it!

    - Now it automatically subdivides concave meshes into convex parts when export.
    - Some problems remain with floating point precission during calculations. It causes strange artifacts.

    To install it download the package and unzip it into blender/.blender/scripts folder. "NEXUIZ (*.MAP)" option appear in export menu section.

    http://www.box.net/shared/6smfxfsc5p

    Work example:


    Blender: Image

    NetRadiant: Image
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Fri Aug 14, 2009 3:28 pm

  • Nice work z80, as always!Thx! :D I'll test as soon as I can, but one question:

    z80 wrote:- Now it automatically subdivides concave meshes into convex parts when export

    If I understood correct, with this feature, I make a simple cube, hit prepare and the exporter transform it in a "6 cubes" room, right?
    Well, this could be useful only for "envelop" cube , but for the other stucture cubes I think it's better to turn it off
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Fri Aug 14, 2009 7:13 pm

  • toneddu2000 No, that's not exactly! It means the following.

    NetRadiant work with "brushes" but "Blender" works with "meshes". Each brush is an inner volume of several intersecting planes. Because planes are infinite objects brushes can be only convex.

    Blender meshes consist of faces, each face has 3 or 4 vertices. Faces can make any abitrary shape of the mesh. If it isn't convex we have a problem :) And it isn't good idea to limit artist with only convex meshes (because not each artist knows what it is :) :) :) )

    So the problem is: in Blender meshes can have any abitraty shape but in NetRadiant brushes can be only convex.

    In previous exporter version concave meshes have been substituted with a set of extruded their individual faces. This isn't very optimal because mesh might consist of very many faces. So better way is to subdivide mesh( only if it is concave ) to a set of convex parts. With convex parts there are no problems when transforming mesh to brush.

    So the automatic subdividing works but sometimes it gives strange looking artifacts. Now I'm working on debugging this annoying effect :)

    I remember your question about NURBS. I'll prepare the explanation and send it to you with e-mail.
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Fri Aug 14, 2009 10:39 pm

  • Can I place lights and entities in Blender? If so, how? I am not really familiar with BGE and it's logic blocks in case it can be done that way :/
    motorsep
    Member
     
    Posts: 33
    Joined: Wed Jul 12, 2006 4:10 pm
    Location: San Antonio, TX

Sat Aug 15, 2009 8:53 am

  • motorsep Yes, lights can be added and handled normally with the exporter. Just add light, it would be exported as is.

    If you need additional params after press prepare button several properties appear in logic section, change them. These properties are "has_target", "target_x", "target_y", "target_z" and "sun". These properties need to set light params blender light doesn't have.

    As concerns entities, now it's impossible to add entities right in Blender. But it's easy to add them in NetRadiant after export.

    Entities support is planned to be included after any geometry export works properly.

    Please tell me about any problems and bugs met (better with pictures displaying them).
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Sat Aug 15, 2009 8:52 pm

  • Version 0.08 of the exporter.
    Anyone, please test it! I need any suggestions!

    It seems I've succeeded to win the battle with python and write correct concave meshes to convex brushes export :)

    Exporter download link: http://www.box.net/shared/2eymc0s3y1

    Example of one complex concave mesh in Blender to several brushes in NetRadiant automatic sectioning:

    Blender: Image

    NetRadiant: Image

    It seems to me very serious improvement. Because I've fed up with cutting meshes into parts for export in older versions!!! And now there are two ways of making brushes from mesh:

    1) extrude each face,
    2) subdivide it into convex parts.

    Last way gives much less brushes, e.i. it seems to be more optimal.

    I'll test it designing my simple test map. If it reveals no serious bugs I'll start working on immerging entities work right in Blender.

    Anyone, please test it!
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Sun Aug 16, 2009 10:04 am

  • Hi again z80
    I have been testing the .7 release but so far no luck, but the mesh im making is fairly complex, i will try the new one now, and post some results if i get any, keep up the good work, this is a really cool thing you're making here :D
    fishsticks
    User avatar
    Rad Ished
    Keyboard killer
     
    Posts: 609
    Joined: Wed Jun 27, 2007 8:00 am
    Location: Not the Netherlands

Sun Aug 16, 2009 11:22 am

  • Rad Ished, actually my problem is in floating point numbers precision. I even think on remaking all calculations in integers :(

    Exporter works perfectly when necessary subdivisions number is relatively low, e.i. for simple meshes like I've posted on pictures (see previous posts). But when I try something like a wall with several windows cut usually it work, but sometimes not. I've almost got a banana improving it. :evil:

    Sometimes it finds concave parts where everything is convex. :roll:
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Mon Aug 17, 2009 2:41 pm

  • Ok, i got something out of it
    http://imgur.com/xEQk0.jpg
    the brown boxes are exported via your 0.08 version exporter.
    I still got an awful lot of extra 'junk' brushes that i had to delete by hand.
    It does seems to work better.
    What i exported was essentially a load of boxes all at different angles.
    The gray hull is a .ase from blender also.
    A banana?
    fishsticks
    User avatar
    Rad Ished
    Keyboard killer
     
    Posts: 609
    Joined: Wed Jun 27, 2007 8:00 am
    Location: Not the Netherlands

Tue Aug 18, 2009 7:08 am

  • Rad Ished

    "To get a banana" as far as I know is an idiom meaning to become mad or crazy :)

    I see. So even boxes export doesn't work well yet. Actually I test the exporter on ultra low poly objects to be able to debug it. Thanks for the picture! Could you also supply with MAP file?

    Now I'm working on removing artifacts apperaing. Anyway in the next version I've realized an ability to export each mesh in two ways. First to extrude each face, and the second by subsectioning as it's done now.

    So even if exporter can't subsection current mesh correncly it's possible to force it's export extruding face by face.
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Tue Aug 18, 2009 9:54 am

  • Rad Ished

    O, wow, you do like BIG sizes :) :) :) Blender grid almost disappeared to one pixel :) :) :)

    I've succeded exporting that as surface. Concerning boxes I really have to remake everything in integers. In 0.09 version of the exporter things look in the following way:
    Image

    In game it's slightly strange due to my shader choise (base/mgrate) :) :) :)

    Image

    I'll remake calculations of sectioning planes in integers and submit a 0.09 exporter version here.
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Tue Aug 18, 2009 6:39 pm

  • Finally, I have an internet connection!So, exporter v 0.08 doesn't work for me sorry. I found 2 bugs, 1 not so annoying, but the second freaks me out! :D

    1)If you "prepare" an object not convex first , it appears the "construction" made by the exporter. Then if you delete the construcion and
    click again on the original object, then click "Prepare" button, the exporter returns this error:
    Code: Select all
    nprint( "skipping this object due to 'ignore' property" )
    NameError: global name 'nprint' is not defined


    It's not a real error but I wanted to tell you! :D

    2)VERY BIG problem. I premit that EVERY map with 0.07 worked flawless with shaders and everything (I didn't test nurbs before, except). I also premit that my path to nexuiz was the svn one so /home/user/games/Nexuiz/trunk/data, but with the 0.07 one I've NEVER had a problem
    Now, with 0.08, If I use an old map that I used for 0.07 testing and I export it everything is exported with no problem, BUT, when I import in netradiant (svn version of 6 july 2009) it returns me 7 times (I counted them!)this error

    Code: Select all
    Open file /home/toneddu/.nexuiz/data/maps/es9.map for read...success
    radiant/brushtokens.h:47
    assertion failure: FaceTexdef_importTokens: bad texdef
    ----------------
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81af4e1]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8126875]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x809de0d]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x80adffc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z18Entity_parseTokensR9TokeniserR13EntityCreatorRK15PrimitiveParseri+0x745) [0xb5be2e36]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z8Map_ReadRN5scene4NodeER9TokeniserR13EntityCreatorRK15PrimitiveParser+0x93) [0xb5be35bc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_ZNK8MapQ3API9readGraphERN5scene4NodeER15TextInputStreamR13EntityCreator+0x4b) [0xb5be6dfd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817cbf8]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817ef64]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f09f]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8182612]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81319e7]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f714]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b3cd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b684]
    /home/toneddu/progs/grafica/netradiant/radiant.x86(_ZN15BindFirstOpaqueI10Caller0To1I9Function0IvXadL_Z7OpenMapvEEEPvEE5thunkES3_+0x17) [0x812347e]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab) [0xb7620c7b]
    /usr/lib/libgobject-2.0.so.0 [0xb7636e57]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b9) [0xb76384b9]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0xb7638936]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0xb7997bda]
    /usr/lib/libgtk-x11-2.0.so.0 [0xb79991f8]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    ----------------
    radiant/brushtokens.h:47
    assertion failure: FaceTexdef_importTokens: bad texdef
    ----------------
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81af4e1]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8126875]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x809de0d]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x80adffc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z18Entity_parseTokensR9TokeniserR13EntityCreatorRK15PrimitiveParseri+0x745) [0xb5be2e36]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z8Map_ReadRN5scene4NodeER9TokeniserR13EntityCreatorRK15PrimitiveParser+0x93) [0xb5be35bc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_ZNK8MapQ3API9readGraphERN5scene4NodeER15TextInputStreamR13EntityCreator+0x4b) [0xb5be6dfd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817cbf8]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817ef64]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f09f]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8182612]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81319e7]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f714]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b3cd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b684]
    /home/toneddu/progs/grafica/netradiant/radiant.x86(_ZN15BindFirstOpaqueI10Caller0To1I9Function0IvXadL_Z7OpenMapvEEEPvEE5thunkES3_+0x17) [0x812347e]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab) [0xb7620c7b]
    /usr/lib/libgobject-2.0.so.0 [0xb7636e57]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b9) [0xb76384b9]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0xb7638936]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0xb7997bda]
    /usr/lib/libgtk-x11-2.0.so.0 [0xb79991f8]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    ----------------
    radiant/brushtokens.h:47
    assertion failure: FaceTexdef_importTokens: bad texdef
    ----------------
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81af4e1]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8126875]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x809de0d]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x80adffc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z18Entity_parseTokensR9TokeniserR13EntityCreatorRK15PrimitiveParseri+0x745) [0xb5be2e36]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z8Map_ReadRN5scene4NodeER9TokeniserR13EntityCreatorRK15PrimitiveParser+0x93) [0xb5be35bc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_ZNK8MapQ3API9readGraphERN5scene4NodeER15TextInputStreamR13EntityCreator+0x4b) [0xb5be6dfd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817cbf8]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817ef64]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f09f]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8182612]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81319e7]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f714]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b3cd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b684]
    /home/toneddu/progs/grafica/netradiant/radiant.x86(_ZN15BindFirstOpaqueI10Caller0To1I9Function0IvXadL_Z7OpenMapvEEEPvEE5thunkES3_+0x17) [0x812347e]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab) [0xb7620c7b]
    /usr/lib/libgobject-2.0.so.0 [0xb7636e57]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b9) [0xb76384b9]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0xb7638936]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0xb7997bda]
    /usr/lib/libgtk-x11-2.0.so.0 [0xb79991f8]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    ----------------
    radiant/brushtokens.h:47
    assertion failure: FaceTexdef_importTokens: bad texdef
    ----------------
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81af4e1]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8126875]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x809de0d]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x80adffc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z18Entity_parseTokensR9TokeniserR13EntityCreatorRK15PrimitiveParseri+0x745) [0xb5be2e36]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z8Map_ReadRN5scene4NodeER9TokeniserR13EntityCreatorRK15PrimitiveParser+0x93) [0xb5be35bc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_ZNK8MapQ3API9readGraphERN5scene4NodeER15TextInputStreamR13EntityCreator+0x4b) [0xb5be6dfd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817cbf8]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817ef64]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f09f]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8182612]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81319e7]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f714]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b3cd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b684]
    /home/toneddu/progs/grafica/netradiant/radiant.x86(_ZN15BindFirstOpaqueI10Caller0To1I9Function0IvXadL_Z7OpenMapvEEEPvEE5thunkES3_+0x17) [0x812347e]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab) [0xb7620c7b]
    /usr/lib/libgobject-2.0.so.0 [0xb7636e57]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b9) [0xb76384b9]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0xb7638936]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0xb7997bda]
    /usr/lib/libgtk-x11-2.0.so.0 [0xb79991f8]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    ----------------
    radiant/brushtokens.h:47
    assertion failure: FaceTexdef_importTokens: bad texdef
    ----------------
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81af4e1]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8126875]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x809de0d]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x80adffc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z18Entity_parseTokensR9TokeniserR13EntityCreatorRK15PrimitiveParseri+0x745) [0xb5be2e36]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z8Map_ReadRN5scene4NodeER9TokeniserR13EntityCreatorRK15PrimitiveParser+0x93) [0xb5be35bc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_ZNK8MapQ3API9readGraphERN5scene4NodeER15TextInputStreamR13EntityCreator+0x4b) [0xb5be6dfd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817cbf8]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817ef64]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f09f]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8182612]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81319e7]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f714]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b3cd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b684]
    /home/toneddu/progs/grafica/netradiant/radiant.x86(_ZN15BindFirstOpaqueI10Caller0To1I9Function0IvXadL_Z7OpenMapvEEEPvEE5thunkES3_+0x17) [0x812347e]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab) [0xb7620c7b]
    /usr/lib/libgobject-2.0.so.0 [0xb7636e57]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b9) [0xb76384b9]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0xb7638936]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0xb7997bda]
    /usr/lib/libgtk-x11-2.0.so.0 [0xb79991f8]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    ----------------
    radiant/brushtokens.h:47
    assertion failure: FaceTexdef_importTokens: bad texdef
    ----------------
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81af4e1]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8126875]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x809de0d]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x80adffc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z18Entity_parseTokensR9TokeniserR13EntityCreatorRK15PrimitiveParseri+0x745) [0xb5be2e36]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z8Map_ReadRN5scene4NodeER9TokeniserR13EntityCreatorRK15PrimitiveParser+0x93) [0xb5be35bc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_ZNK8MapQ3API9readGraphERN5scene4NodeER15TextInputStreamR13EntityCreator+0x4b) [0xb5be6dfd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817cbf8]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817ef64]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f09f]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8182612]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81319e7]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f714]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b3cd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b684]
    /home/toneddu/progs/grafica/netradiant/radiant.x86(_ZN15BindFirstOpaqueI10Caller0To1I9Function0IvXadL_Z7OpenMapvEEEPvEE5thunkES3_+0x17) [0x812347e]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab) [0xb7620c7b]
    /usr/lib/libgobject-2.0.so.0 [0xb7636e57]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b9) [0xb76384b9]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0xb7638936]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0xb7997bda]
    /usr/lib/libgtk-x11-2.0.so.0 [0xb79991f8]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    ----------------
    radiant/brushtokens.h:47
    assertion failure: FaceTexdef_importTokens: bad texdef
    ----------------
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81af4e1]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8126875]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x809de0d]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x80adffc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z18Entity_parseTokensR9TokeniserR13EntityCreatorRK15PrimitiveParseri+0x745) [0xb5be2e36]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z8Map_ReadRN5scene4NodeER9TokeniserR13EntityCreatorRK15PrimitiveParser+0x93) [0xb5be35bc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_ZNK8MapQ3API9readGraphERN5scene4NodeER15TextInputStreamR13EntityCreator+0x4b) [0xb5be6dfd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817cbf8]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817ef64]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f09f]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8182612]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81319e7]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f714]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b3cd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b684]
    /home/toneddu/progs/grafica/netradiant/radiant.x86(_ZN15BindFirstOpaqueI10Caller0To1I9Function0IvXadL_Z7OpenMapvEEEPvEE5thunkES3_+0x17) [0x812347e]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab) [0xb7620c7b]
    /usr/lib/libgobject-2.0.so.0 [0xb7636e57]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b9) [0xb76384b9]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0xb7638936]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0xb7997bda]
    /usr/lib/libgtk-x11-2.0.so.0 [0xb79991f8]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    ----------------
    radiant/brushtokens.h:47
    assertion failure: FaceTexdef_importTokens: bad texdef
    ----------------
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81af4e1]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8126875]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x809de0d]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x80adffc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z18Entity_parseTokensR9TokeniserR13EntityCreatorRK15PrimitiveParseri+0x745) [0xb5be2e36]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z8Map_ReadRN5scene4NodeER9TokeniserR13EntityCreatorRK15PrimitiveParser+0x93) [0xb5be35bc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_ZNK8MapQ3API9readGraphERN5scene4NodeER15TextInputStreamR13EntityCreator+0x4b) [0xb5be6dfd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817cbf8]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817ef64]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f09f]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8182612]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81319e7]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f714]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b3cd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b684]
    /home/toneddu/progs/grafica/netradiant/radiant.x86(_ZN15BindFirstOpaqueI10Caller0To1I9Function0IvXadL_Z7OpenMapvEEEPvEE5thunkES3_+0x17) [0x812347e]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab) [0xb7620c7b]
    /usr/lib/libgobject-2.0.so.0 [0xb7636e57]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b9) [0xb76384b9]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0xb7638936]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0xb7997bda]
    /usr/lib/libgtk-x11-2.0.so.0 [0xb79991f8]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    ----------------
    radiant/brushtokens.h:47
    assertion failure: FaceTexdef_importTokens: bad texdef
    ----------------
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81af4e1]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8126875]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x809de0d]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x80adffc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z18Entity_parseTokensR9TokeniserR13EntityCreatorRK15PrimitiveParseri+0x745) [0xb5be2e36]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_Z8Map_ReadRN5scene4NodeER9TokeniserR13EntityCreatorRK15PrimitiveParser+0x93) [0xb5be35bc]
    /home/toneddu/progs/grafica/netradiant/modules/mapq3.so(_ZNK8MapQ3API9readGraphERN5scene4NodeER15TextInputStreamR13EntityCreator+0x4b) [0xb5be6dfd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817cbf8]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817ef64]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f09f]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x8182612]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x81319e7]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x817f714]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b3cd]
    /home/toneddu/progs/grafica/netradiant/radiant.x86 [0x812b684]
    /home/toneddu/progs/grafica/netradiant/radiant.x86(_ZN15BindFirstOpaqueI10Caller0To1I9Function0IvXadL_Z7OpenMapvEEEPvEE5thunkES3_+0x17) [0x812347e]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab) [0xb7620c7b]
    /usr/lib/libgobject-2.0.so.0 [0xb7636e57]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b9) [0xb76384b9]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0xb7638936]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0xb7997bda]
    /usr/lib/libgtk-x11-2.0.so.0 [0xb79991f8]
    /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84) [0xb762e3a4]


    The map after opens but, shaders are gone!! :shock: Maybe I've to set shaders properties in Blender with f4 (but with 0.07 I've never done)? Nurbs work but also shaders not.
    I also tried (as you can see ) a different path, I created a folder in /nexuiz/data/textures because I thought that it was a textures path problem but nothing :cry:
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Wed Aug 19, 2009 6:06 am

  • toneddu2000 Thank you for significant bug report! I see you've succeded investigating how to work with NURBS, great! Could you please supply me with .MAP file? It would be easier for me to detect the problem.

    Concerning shaders, could you describe it in more detail answering questions below.

    - Did you set a texture for mesh as image in Blender?
    - Did you set any override to that texture using prop "texture[0]" or something like that?
    - Did you set a texture prop (not "texture[0]") for NURB in Blender or just assigned a material to it?
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Wed Aug 19, 2009 10:40 am

  • I've posted a zip with the .MAP file and .blend file at this link:

    http://www.box.net/shared/1n8lc3lu92

    According to your reply:

    - Did you set a texture for mesh as image in Blender?

    yes. As always, I created a material, an uv (not ORCO) texture and I assigned to it a texture

    - Did you set any override to that texture using prop "texture[0]" or something like that?

    No. But I'd like to learn more about this property!:D If you can, Could you please mail me a just a sketch about this feature in blender and how to use it in the exporter, so I can insert it in the exporter manual

    - Did you set a texture prop (not "texture[0]") for NURB in Blender or just assigned a material to it?

    I don't even know what's a texture prop :D . I just assigned a material. The same material I used for "box walls" I used for nurbs suface too. But, with 0.07 it works, instead, with 0.08 does'nt
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Wed Aug 19, 2009 11:08 am

  • Version 0.09.
    http://www.box.net/shared/sipfbis0kv

    -Textures bug fixed.
    - I removed creation of meshes when PREPARE.
    -Any mesh could be exported extruding it face by face by clicking treat selected as surf when export button in exporter GUI panel.

    The last option need for exporting for example ground or when exporter failed to subsection concave mesh correctly.

    toneddu2000

    I've posted some images explaining how one can override shader name with logic props. But as far as I remember it's written in exporter GUI window :)

    Image

    Image

    As concerns NURBS texture I can't read it's material in Blender. So the only way to export it's material is to use logic property texture.

    Image
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Wed Aug 19, 2009 4:00 pm

  • Thanks for this release, z80! I'm still a little confused, however! :D
    So, if I used the same blend file I've uploaded, it fails (Or better, it returns all the 7 errors, but it finds all the textures). But, if I create a new scene, creating a small room of boxes, a material with, for example, a base/mgrate.tga texture, and a texture[0] with base/mgrate name, it works with no problem! No warnings, no conflicts in netradiant!But there are some issues that with 0.07 (my favourite one :D ) didn't happen:
    1)when you create a box and hit "prepare", it doesn't add a convex property to the object, so you have to do it by hand, and for a single object is not a problem but for 100 objects it would be more problematic!(You can also select all objects, then object with the property and press Ctrl + C and choose "properties", by the way!)
    2)what [] index stands for? If I create more materials, do I have to set more indexes, or that is only for multi-material per object?
    3)I've noticed that scale factor now is set to 64, do I have to leave it to this factor or I could set to 32, because I've spent a night to test this factor! :D
    4)I'm a little stupid, but I didn't understand what "treat selected as surf when export " button
    needs for!:oops:
    PS:nurbs appear, but without textures. I used everything, "treat selected as surf when export " button, materials and texture[] property but.. nothing!!

    However great script!Thx!
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Wed Aug 19, 2009 4:48 pm

  • toneddu2000

    1), 4) Well....I've changed subsectioning algorithm. Now there is no such property. Now things are the following. Each mesh is processed with sectioning algorithm. If it finds mesh to be a closed (if it has inner volume without holes to outside) it tries to section it to convex parts and export these parts one by one. If mesh isn't closed it is treated as surface. Surface mesh is exported by extruding each it's face as different brush (like concave meshes have been exported in previous versions of the exporter). Because of sectioning algorithm doesn't always work well the button "treat selected as surf when export" forces the algorithm to treat mesh as surface mesh (to export it face by face).

    2) Index is used when there are several materials for one mesh. Actually I haven't tested it yet with more then one material :) :) :). But I thought it might be useful.

    3) Well ... scale factor could be changed in export GUI form. I don't see any problem here. Could you describe it in more detail. For example when I debug the exporter I usually try several different scale factors. But 32 is a correct one in my opinion.

    On PS. NURBS should be exported with "texture" but not "texture[i]"! There could be only one shader per one NURBS surface, that's why there is no index there.

    Thank you for bug report! Great work!!! As I can see all object properties handling should be hidden and done automatically by pressing appropriate buttons in exporter GUI menu and free artist from thinking on problems concerning internal exporter structure. I'll try to make it possible in the next version.

    But it's still the most important problem that I can't force sectioning algorithm to work properly on arbitrary complex mesh.
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Wed Aug 19, 2009 5:57 pm

  • toneddu2000 What kind of error does it return? Would you be so kind to submit the text of these errors? It would be easier for me to fix those bugs.
    Don't use the force, Luke! Try to think!
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Thu Aug 20, 2009 3:55 pm

  • I cannot find the folder you say you must unzip this into. the only folder in my blender folder is "plugins".

    where can the folder you speak of be found?
    Why has a developer ever needed any reason other than "it looks bloody awesome?"

    -Archon
    User avatar
    Yoda almighty
    Alien
     
    Posts: 151
    Joined: Thu Aug 20, 2009 2:19 am
    Location: somewhere in the void

Thu Aug 20, 2009 4:22 pm

  • Yoda almighty

    What kind of computer and operating system do you use? If it's Ubuntu Linux or any other Debian derivative it might be on the path "./usr/share/blender/scripts" if I'm not mistaken.

    Well, in my Blender distribution (win32) Blender folder has two subfolders: 1) "plugins" and 2) ".blender". The last one contains "scripts" folder. The exporter archive should be unzipped there. Actually the same as any Blender python script.
    Don't use the force, Luke! Try to think!
    User avatar
    z80
    Advanced member
     
    Posts: 92
    Joined: Sun Jul 26, 2009 7:35 pm
    Location: Russia

Thu Aug 20, 2009 4:25 pm

  • oh, sorry. i am on 10.4 mac.

    i also tried copying and pasting the script into blender's text editor, but that didn't work either.
    Why has a developer ever needed any reason other than "it looks bloody awesome?"

    -Archon
    User avatar
    Yoda almighty
    Alien
     
    Posts: 151
    Joined: Thu Aug 20, 2009 2:19 am
    Location: somewhere in the void

PreviousNext


Return to Nexuiz - Editing




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest