[Blog] Flour 0.4

betajaen

10-09-2009 19:07:43



Flour 0.4.0

Features:
  1. Built from NxOgre Git, OpenGL and Boost[/*:m]
  2. Convex, Triangle and Cloth Conversions[/*:m]
  3. Support for "NXS" and "Flower" Fileformats. Loading and Saving[/*:m]
  4. Conversion between file-formats. Flower to NXS, and even NXS to Flower[/*:m]
  5. Mesh Viewer (Shown on screen)[/*:m]
  6. Blender Exporter[/*:m]
  7. Hosted at GitHub[/*:m][/list:u]

    Really easy to use syntax

    flour --convex monkey.flower
    flour --triangle monkey.flower
    flour --cloth monkey.flower tree.flower cake.flower ghost.flower
    flour --viewer monkey.flower tree.nxs


    Coming Soon in a week or so (or download my work so far from GitHub)

betajaen

12-09-2009 21:52:30

Spacegaier is practically wetting his pants when he saw this image*.



It's a mini-cake testing application in Flour for your newly cooked meshes. Imagine your in your modeller and your wondering how well it will collide with other. Problem is it takes too long to find out. Well, thanks to Flour it only takes seconds to do so.

Everything is command line, 5 cubes, 7 cones;

flour --cupcake cube.nxs*5 cone.nxs*7

If that is too complicated. I have plans to modify the Blender exporter for a few handy menus items. ;)


* He wasn't really wetting his pants. But he was excited.

f00bar

13-09-2009 20:57:37

very nice. do you have an idea, when cloth and softbody will be ready?

[edit]
btw, found the interface a little dangerous. you can easy override your flower files by converting into the wrong direction accidentally.

betajaen

13-09-2009 20:59:55

Cloth is already in BloodyMess and Bleeding. SoftBody (but not rendering) is in BloodyMess.

I haven't tried cooking cloth in Flour yet, but I suspect it would work.

f00bar

13-09-2009 21:09:07

it crashed on creating cloth:
Unhandled exception at 0x770f42eb in Flour.exe: Microsoft C++ exception: boost::program_options::too_many_positional_options_error at memory location 0x001ef29c..

do I call it in a wrong way? The "Command Arguments" in the debugger are:
--cloth C:\Users\igamer\dev\BloodyCake\application\Media\cube1.flower

Stack:
kernel32.dll!770f42eb()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
kernel32.dll!770f42eb()
msvcr90d.dll!67cbf8f2()
> Flour.exe!boost::program_options::detail::cmdline::run() Line 330 + 0x38 bytes C++
Flour.exe!boost::program_options::basic_command_line_parser<char>::run() Line 102 + 0xf bytes C++
Flour.exe!FlourTool::parse(int argc=3, char * * argv=0x01044fa0) Line 52 + 0x12 bytes C++
Flour.exe!Flour::fromCommandLine(int argc=3, char * * argv=0x01044fa0) Line 97 C++
Flour.exe!main(int argc=3, char * * argv=0x01044fa0) Line 32 C++
Flour.exe!__tmainCRTStartup() Line 586 + 0x19 bytes C
Flour.exe!mainCRTStartup() Line 403 C
kernel32.dll!770f4911()
ntdll.dll!7752e4b6()
ntdll.dll!7752e489()

betajaen

13-09-2009 21:25:06

I guess not then. I'll see if I can fix it.

[Edit]

Found the reason why. It'll be up in the next commit.

artn3r

16-09-2009 23:26:55

how to compile this? i compiled it against the latest git version of nxogre and
i get a lot of unresolved symbols. can someone post the exe file? i just want
to cook one cloth file.

btw: great work!

regards
christian

spacegaier

17-09-2009 00:01:52

Here is a compiled, temporarily version (however, the git version is newer):

http://static.nxogre.org/shared/flour.zip

EDIT: Do you linked boost?

betajaen

17-09-2009 00:22:13

Far newer. Sadly Spacegaier, I'm pretty sure that version won't cook cloth.

artn3r

What unresolved symbols are you getting?

waffleShirt

17-09-2009 03:29:01

Just played around with the compiled binary posted by spacegaier. The cupcake app is extremely useful and the new command line interface is much more friendly than the old one. One question, will the new version of flour retain the option to convert .mesh into .nxs, or will all conversions need to be done with .flower files exported from blender?

spacegaier

17-09-2009 08:21:13

.MESH files will not be supported anymore, as NxOgre is since BloodyMess independent of Ogre, so you could as well use another renderer if you'd like. So everything is going now via the .FLOWER files generated e.g. from the Blender Exporter for it.

betajaen

17-09-2009 10:20:39

Just played around with the compiled binary posted by spacegaier. The cupcake app is extremely useful and the new command line interface is much more friendly than the old one.

Thanks. I've been working on an additional blender tool, so you can send your selected mesh into cupcake with a drop of a menu item.

AnTeevY

01-10-2009 14:27:45

I'm trying to compile Flour, but... what is "bml"?
FlourToolCupcake.cpp(251) : error C2653: 'bml' : is not a class or namespace name

And what does the blender exporter do? Just export .flower files and you have to manually convert them to .nxs, or directly the .nxs?

betajaen

01-10-2009 14:38:42

Yep, it exports flower files which are readable by Flour which gets turned into an NxOgre/PhysX mesh, it's equivalent to the Ogre Mesh XML fileformat.

As for your bml problem, there have been some changes in NxOgre for which I haven't updated Flour yet. I'll try and fix it later for you.


[Edit]

I uploaded an executable of flour the other day. It's not official, but it'll get you by.

viewtopic.php?f=6&t=11199 (Second post down in the attachments)

AnTeevY

01-10-2009 22:08:29

Okay thanks. Is there any diference whether I convert my ogre meshes with the old Flour or the flower files with the new one?

spacegaier

01-10-2009 22:10:00

I thought the new Flour can't deal with .MESH files any longer? Flower is to become the main format here.

AnTeevY

02-10-2009 09:48:16

Yeah, I convert the ogre meshes with the old Flour. What's the flower format for anyway?

betajaen

02-10-2009 10:08:50

It's equivalent to an OGRE Mesh XML file. Your modeller exports the flower file, which flour converts into a NXS/XCL file.

ShUr1k3n

10-12-2009 10:22:33

Can any1 help me with Blender Exporter?

I Have blender installed, but when i try to execute the "flower_blender_export.py" script i got this error:

Traceback (most recent call last):
File "flower_blender_export.py", line 45, in <module>
import Blender
ImportError: No module named Blender


What do i need to do to get this working? Thanks in advance.

PS: Very great work betajaen.

EDIT: Never mind. Got it working! :)

spe02001

06-01-2010 08:25:20

I have got an run time error in these options.
convert to cloth
--files
would any one know how to fix this error (convert to cloth)??
and is it any other programme can convert to xcl file format??

spe02001

12-01-2010 12:31:51

Is "flower_blender_export.py" need to install Python or any things else??
I have got an error when using the flower exporter .

spacegaier

12-01-2010 12:50:56

Yes, you need Python in order to run Blender properly and to use the PythonScripts. Once Python is installed you have to tell Blender the path to it, as well as the path to the Scripts folder, where you have to put the "flower_blender_exporter.py".

spe02001

13-01-2010 02:56:29

Yes, you need Python in order to run Blender properly and to use the PythonScripts. Once Python is installed you have to tell Blender the path to it, as well as the path to the Scripts folder, where you have to put the "flower_blender_exporter.py".
How to do this??
I need the step.

spacegaier

13-01-2010 17:48:22

Well, let's see....I guess downloading python would be a good starting point ;) . Afterwards, installing would make sense too...

Then start up Blender (and it seems as if Blender should automatically find your Python, have a look at the appearing Blender command window). Then move your mouse to the lower end of the menu toolbar at the top of window until the cursor changes and enlarge the menu bar until you see some path input fields. Then just point the plugin path to the plugin folder in the Blender directory (in which folder you also have to copy the exporter script). After that, restart Blender and you should be able to choose the exporter from From > Export.

magda

08-02-2010 07:22:09

could anyone post the newest exe? the one posted by spacegaier crashes on creating cloth and, though i tried really hard, i can't build git version

rpgplayerrobin

07-03-2010 02:09:57

Hey,

I am having some problems with cloth objects using flour...

From Blender I export the object with the .py file to a .flower file; and that works (just a plane):

# Plane
# Vertices 4
vertices 1.000000, 1.000000, 0.000000
vertices 1.000000, -1.000000, 0.000000
vertices -1.000000, -1.000000, 0.000000
vertices -1.000000, 1.000000, 0.000000

# Indices 6
indices 0, 3, 2, 0, 2, 1


After that I use the command:
flour --cloth ../untitled.flower

Which is also successful, and creates a .nxs file with 410 bytes in it (it is not empty).

After this I use the command:
flour --cupcake ../untitled.nxs

This step fails:
Creating archive named 'flour_5861473' -> 'file:..'
AT = 405
Header = ' '
Shape could not be loaded!


I got my .exe version from the first page of this thread:
Yep, it exports flower files which are readable by Flour which gets turned into an NxOgre/PhysX mesh, it's equivalent to the Ogre Mesh XML fileformat.

As for your bml problem, there have been some changes in NxOgre for which I haven't updated Flour yet. I'll try and fix it later for you.


[Edit]

I uploaded an executable of flour the other day. It's not official, but it'll get you by.

viewtopic.php?f=6&t=11199 (Second post down in the attachments)


Do anyone have any suggestion what to do? :(

Thanks in advance!

// Robin

betajaen

07-03-2010 09:33:39

I'm pretty sure it doesn't export cloth; due to the NxOgre version it is compiled with.

rpgplayerrobin

07-03-2010 14:51:06

Oh I see...

So I need to compile it from the GIT version?

betajaen

07-03-2010 16:24:25

I would.

rpgplayerrobin

07-03-2010 20:10:01

Hey,

I have tried to build this for about 6 hours in a row now, with no success.

What I do is to download the git version of flour and nxogre.

I compile the nxogre version and then I download Boost 1.42.

This step is impossible, there is no way I can build Boost 1.42, so I leave it just as a source (and there are no instructions for it anywhere).

I set the directories in the flour version to the correct ones and I compile, it gives me some compile errors since it does not have the lib files from Boost 1.42.
What I do is to download the lib files from http://sourceforge.net/projects/boost/files/boost-binaries/1.42.0/ and then I compile flour, but when I run it, it crashes when it uses the first boost function, which probably means the lib files is not built with the same files as the source I downloaded...

This step I have been stuck on for at least 2 hours, I can not find any way to build Boost 1.42, it does not work to create a build directory with cmake and there are no solution files available.

Do anyone know how to do this? Or do anyone have the exe file of the newest flour version that works with export of cloth?

Is there some guide to get the latest flour that I have missed?

// Confused Robin :oops:

betajaen

07-03-2010 20:20:47

Urgh!!

If you can wait, it's on my todo list on the latest announcement thread.

Otherwise, if it's just a simple plane that you posted you can create the cloth in C++ code manually via the ManualMesh (and even save it to a NXS/XCL if you so wish).

rpgplayerrobin

07-03-2010 21:21:41

Hey,

I would like to create the meshes from a 3D model program and then make them cloth really, so it won't work only with creating them manually in code...

I think I'll wait then until you have come to that point in the todo list. :D

Cheers,

Robin :mrgreen:

NazguL86

06-04-2010 20:15:20

I exported a .flower file from blender and converted into .nxs - but as I've checked with the visual debugger and using the --viewer option within flower the .nxs file has a different orientation from the mesh file.
How can I rotate the .nxs file? I've seen the --rotate option in flower, but I don't get how it is working...

betajaen

11-04-2010 21:44:20

I've ported Flour over to the new Detritus code, still a week or two until I want to release it.

But; I wrote a Ruby script to convert an Ogre Mesh XML into flower.

http://github.com/betajaen/flour/blob/m ... oflower.rb

Should be handy for everyone!

sarcacid

20-05-2010 13:03:29

Any chance of seeing an updated Flour soon? The current version on github doesn't jive with Detritus (which no longer has NxOgre::Archive) nor with BloodyMess (which lacks NxOgre::MeshData),

EDIT: Or, if you can point me towards the revision of Detritus it works with, that would suffice :)

betajaen

20-05-2010 16:01:44

This is the little fella that everyone is using at the moment, try him out.

viewtopic.php?p=64166#p64166

sarcacid

21-05-2010 14:30:56

Thanks, the converter works great.

Cupcake (flour --cupcake cone.nxs) also seems to work fine, but prints nonstop GL_ERROR=0x502 in the console while running.

betajaen

21-05-2010 14:45:52

Yep. I think that's due to the GUI system involved.

ActionFG

30-07-2010 10:30:16

I download the flour source in the URL (ttp://github.com/betajaen/flour).
When i compile the flour solution, an error which fatal error C1007 occors.

Generating Code...

Linking...

fatal error C1007: unrecognized flag '-typedil' in 'p2'


I open the solution with VC++ 2005 which its origin version is VC++ 9.
And I changed the "Version" property of flour.vcproj to "Version="8.00"", should i change some other property?

Thanks for your help.

matejmainus

07-09-2010 16:28:38

Is already exist Flour for Detritus?