sidebar features
sidebar content

Go Back   Blender Artists Forums > General Forums > News & Discussion

Reply
 
Thread Tools
Vainqueur's Avatar
Vainqueur Vainqueur is offline
Member
 
Join Date: Dec 2003
Location: Barcelona, Spain
Posts: 1,382
Update:
Quote:
Feburary 5, 2006
New version out. Get it and the blender script from the download page. New features in this release include:

* OpenEXR output
* Robust kd-tree traversal (link)
* Experimental integration with Janino for compiling user shaders on the fly
* A few minor bug fixes

Be carefull, the command line to start Sunflow has changed. Check the README for more information.
Christopher Kulla (fpsunflower) has released a precompiled package for his open-source rendering system Sunflow. Previously, only the sources were available. There is now also a script for blender export, courtesy of Robert Lindsay (hayfever_). Well, I'll just quote Christopher himself from the news-page:
Quote:
January 20, 2006
I have posted a precompiled binary package for those folks who don't want to mess with the source code. Get it here. I am also making available a simple Blender export script. Thanks to Robert Lindsay for writing most of this. I am not making an official package for this just yet since its very new. Place it in your .blender/scripts folder and restart Blender. The script will let you set a few basic render options and export the geometry to disk. You will most likely need to tweak the exported scenes by hand to get the most out of the software. Better integration to Blender is planned, so keep on checking back here for updates! Feedback is welcome, please use the Sourceforge mail system to reach me.
http://sunflow.sourceforge.net/index.php?pg=news

Thought this might be interesting for blender-people. Unfortunately, I haven't had much luck with the export yet. I get a black screen.
............................................
Power corrupts, and absolute power gets the job done.
Blender tutorial - Boxmodelling a head
#1   Old 21-Jan-06, 11:04   
Reply With Quote


hayfever_ hayfever_ is offline
Member
 
Join Date: May 2005
Location: Isle of Man
Posts: 62
Hi Bellorum, thanks for moving this here. You may be getting a black screen due to the light setup try using a meshlight (see below), as for overwriting the .blend file (???) i didn't have that problem, if it happens again can you provide the steps that made this happen so i can have a look. Below are a few features of the script that will allow you to export Sunflow specific settings and will be included in a readme at some point.

1. to create a meshlight, add a mesh object and make sure the object name begins meshlight, if you use a plane make sure the normals are pointing in the right direction. You can use any mesh to emit light.
2. to add an ibl light, create a new world and add an image texture called ibllight and load a .hdr image file
3. enabling raymirror in materials will export the shader as mirror type
4. enabling raytransp in materials will export the shader as glass type
5. surfaces (nurbs) are also exported without converting to meshes, although i don't think they all work, curves for example
#2   Old 21-Jan-06, 13:04   
Reply With Quote
bmax bmax is offline
Member
 
Join Date: Mar 2002
Location: c:\recycled\
Posts: 3,128
Quote:
Written 100% in Java
Isn't that going to be brutally slow? Anybody have any experiences with it?
#3   Old 21-Jan-06, 13:39   
Reply With Quote
Vainqueur's Avatar
Vainqueur Vainqueur is offline
Member
 
Join Date: Dec 2003
Location: Barcelona, Spain
Posts: 1,382
Quote:
Originally Posted by hayfever_
Hi Bellorum, thanks for moving this here. You may be getting a black screen due to the light setup try using a meshlight
Thanks for the tip. First modest result below

Quote:
as for overwriting the .blend file (???) i didn't have that problem, if it happens again can you provide the steps that made this happen so i can have a look.
My bad actually. :-| Everything works like it should now.
............................................
Power corrupts, and absolute power gets the job done.
Blender tutorial - Boxmodelling a head
#4   Old 21-Jan-06, 15:05   
Reply With Quote
lakcaj lakcaj is offline
Member
 
Join Date: May 2005
Posts: 229
How do I do a simple GI render, without any mesh lights?
#5   Old 21-Jan-06, 17:14   
Reply With Quote
fpsunflower fpsunflower is offline
Member
 
Join Date: Jan 2006
Posts: 155
Quote:
Originally Posted by Bellorum
Thanks for the tip. First modest result below

This looks interesting ... Send me the scene file if you want, you can also try editing the .sc and change "type mesh" to "type flat-mesh" in the cube definition. My guess is there's something wrong with the normals. Proper support for blender style normals and uvs is comming in the next release.
#6   Old 21-Jan-06, 17:32   
Reply With Quote
fpsunflower fpsunflower is offline
Member
 
Join Date: Jan 2006
Posts: 155
Quote:
Originally Posted by lakcaj
How do I do a simple GI render, without any mesh lights?
The script has basic support for point lights. Create one in the scene and turn on path tracing in the exporter.
#7   Old 21-Jan-06, 17:34   
Reply With Quote
hayfever_ hayfever_ is offline
Member
 
Join Date: May 2005
Location: Isle of Man
Posts: 62
Quote:
Originally Posted by fpsunflower
Quote:
Originally Posted by lakcaj
How do I do a simple GI render, without any mesh lights?
The script has basic support for point lights. Create one in the scene and turn on path tracing in the exporter.
Hello, there was a bug in the exporter, i've fixed it and sent it on to Chris
#8   Old 21-Jan-06, 17:50   
Reply With Quote
Vainqueur's Avatar
Vainqueur Vainqueur is offline
Member
 
Join Date: Dec 2003
Location: Barcelona, Spain
Posts: 1,382
Quote:
Originally Posted by fpsunflower
This looks interesting ... Send me the scene file if you want, you can also try editing the .sc and change "type mesh" to "type flat-mesh" in the cube definition.
That fixed it.
............................................
Power corrupts, and absolute power gets the job done.
Blender tutorial - Boxmodelling a head
#9   Old 21-Jan-06, 18:37   
Reply With Quote
yellow yellow is offline
Member
 
Join Date: Dec 2004
Posts: 1,084
Bellorum, thanks for the link. I'd really like to try it out but...

I can't seem to get it working. I get this if i try running sunflow.jar:

Exception in thread "main" java.lang.UnsupportedClassVersionError: SunflowGUI (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :539)
at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader .java:251)
at java.net.URLClassLoader.access$100(URLClassLoader. java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java: 194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 89)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302)

I'm using Linux and suspect i'm missing something.

thanks
#10   Old 21-Jan-06, 18:40   
Reply With Quote
fpsunflower fpsunflower is offline
Member
 
Join Date: Jan 2006
Posts: 155
Quote:
Originally Posted by yellow
Bellorum, thanks for the link. I'd really like to try it out but...

I can't seem to get it working. I get this if i try running sunflow.jar:
....
I'm using Linux and suspect i'm missing something.

thanks
Looks like you are running an older version of Java. Type
Code:
java -version
at the command line to check.

Once you installed the newest one, make sure you update your path. You need at least 1.5 for sunflow to work.
#11   Old 21-Jan-06, 18:43   
Reply With Quote
hayfever_ hayfever_ is offline
Member
 
Join Date: May 2005
Location: Isle of Man
Posts: 62
Quote:
Originally Posted by hayfever_
Quote:
Originally Posted by fpsunflower
Quote:
Originally Posted by lakcaj
How do I do a simple GI render, without any mesh lights?
The script has basic support for point lights. Create one in the scene and turn on path tracing in the exporter.
Hello, there was a bug in the exporter, i've fixed it and sent it on to Chris
lakca, you can get the latest script from the website now, it has a fix to export the lamps. it was all my fault %|
#12   Old 21-Jan-06, 18:46   
Reply With Quote
Mr Wonka's Avatar
Mr Wonka Mr Wonka is offline
Donating Member
 
Join Date: Apr 2004
Posts: 107
Quote:
Originally Posted by bmax
Quote:
Written 100% in Java
Isn't that going to be brutally slow? Anybody have any experiences with it?
Actually, with a newer Virtual machine with a JIT compiler Java can be as quick as native code. The perceived speed loss can be mostly explained by the time neccessary to initialise and create the virtual machine. Since this renderer will most likely be maths centric I imagine that it won't be that much slower, if at all, then a native solution.
............................................
www.salienttraits.com
#13   Old 21-Jan-06, 19:38   
Reply With Quote
henrymop's Avatar
henrymop henrymop is online now
Member
 
Join Date: Jul 2005
Posts: 2,339
Quote:
Originally Posted by hayfever_
Quote:
Originally Posted by fpsunflower
Quote:
Originally Posted by lakcaj
How do I do a simple GI render, without any mesh lights?
The script has basic support for point lights. Create one in the scene and turn on path tracing in the exporter.
Hello, there was a bug in the exporter, i've fixed it and sent it on to Chris
Point lights?
#14   Old 21-Jan-06, 20:32   
Reply With Quote
hayfever_ hayfever_ is offline
Member
 
Join Date: May 2005
Location: Isle of Man
Posts: 62
[/quote]

Point lights?[/quote]

Blender Lamp
#15   Old 21-Jan-06, 20:40   
Reply With Quote
RJii RJii is offline
Member
 
Join Date: Jul 2005
Posts: 307
Loading of .tga imagetextures dies with an IllegalArgumentException. I'll email Christopher too, as I understand he doesn't visit here?

/edit

Ok, thanks hayfever. I'm an ass and/or can't see very well.

Sunflow dies with

Code:
D:\kielet\Blender\Sunflow>java -jar -Xmx800M sunflow.jar Exception in thread "Thread-2" java.lang.IllegalArgumentException: Empty region! at javax.imageio.ImageReader.computeRegions(Unknown Source) at com.sun.imageio.plugins.wbmp.WBMPImageReader.read(Unknown Source) at javax.imageio.ImageIO.read(Unknown Source) at javax.imageio.ImageIO.read(Unknown Source) at org.sunflow.image.Bitmap.<init>(Bitmap.java:151) at org.sunflow.core.Texture.<init>(Texture.java:17) at org.sunflow.core.TextureCache.getTexture(TextureCache.java:25) at org.sunflow.core.shader.TexturedDiffuseShader.<init>(TexturedDiffuseS hader.java:13) at org.sunflow.SceneParser.parse(SceneParser.java:341) at SunflowGUI.loadScene(SunflowGUI.java:197) at SunflowGUI$15.run(SunflowGUI.java:90) at java.lang.Thread.run(Unknown Source)
With this material:

Code:
shader { name Material type diffuse texture D:\kielet\Blender\textures\corvette_insign.tga }
This was a simple cube exported from blender and the precompiled jar. Changing the texture to something else renders fine. I also checked that the tgafile is present.

Thanks for a promising looking software, none the less.
............................................
I did not write this post.
#16   Old 21-Jan-06, 21:11   
Reply With Quote
hayfever_ hayfever_ is offline
Member
 
Join Date: May 2005
Location: Isle of Man
Posts: 62
Quote:
Originally Posted by RJii
Loading of .tga imagetextures dies with an IllegalArgumentException. I'll email Christopher too, as I understand he doesn't visit here?
He will be looking at the forum, id is fpsunflower (see previous page for some of his posts)
#17   Old 21-Jan-06, 21:16   
Reply With Quote
fpsunflower fpsunflower is offline
Member
 
Join Date: Jan 2006
Posts: 155
Quote:
Originally Posted by RJii
Loading of .tga imagetextures dies with an IllegalArgumentException. I'll email Christopher too, as I understand he doesn't visit here?
I do visit here =)

TGA files are not supported at the moment I'm afraid. Try converting your texture to jpg or png.
#18   Old 21-Jan-06, 21:31   
Reply With Quote
mrmunkily's Avatar
mrmunkily mrmunkily is offline
Member
 
Join Date: Nov 2001
Location: On a Bullet Train to Party Town
Posts: 734
note for OS X:

Java 1.5 is only supported by OS X 10.4+ and needs a manual download from apple.

Will sunflow compile under 1.42?
#19   Old 21-Jan-06, 21:49   
Reply With Quote
fpsunflower fpsunflower is offline
Member
 
Join Date: Jan 2006
Posts: 155
Quote:
Originally Posted by mrmunkily
note for OS X:

Java 1.5 is only supported by OS X 10.4+ and needs a manual download from apple.

Will sunflow compile under 1.42?
No. I use some new features like generics and enums that are not present in 1.4.x

I have gotten Sunflow to work on OSX with the said manual download though. It will not overwrite your path, so you will need to dig through the framework directories to find the proper java executable, but it works.
#20   Old 21-Jan-06, 21:52   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:39.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists