Rendering on Windows Server 2008 Possible?
This topic has been viewed 13870 times and has 18 replies
Rendering on Windows Server 2008 Possible?
Hi,
i love to use SH3D, my Problem is that i want to use all of the Xeon CPU Cores on a Windows 2008 Server.
For some stupid reasons this is not possible because Java3d cannot create a RenderInterface for th 3d Hardware accelerated Preview Window.
Is there a Way to run the Raytrace Render without starting the Program itself?
Like Saving the Camera Position and then Starting the Render Process?
I would love to hear an Answer.
Best Regards
Moxi [:)]
i love to use SH3D, my Problem is that i want to use all of the Xeon CPU Cores on a Windows 2008 Server.
For some stupid reasons this is not possible because Java3d cannot create a RenderInterface for th 3d Hardware accelerated Preview Window.
Is there a Way to run the Raytrace Render without starting the Program itself?
Like Saving the Camera Position and then Starting the Render Process?
I would love to hear an Answer.
Best Regards
Moxi [:)]
Re: Rendering on Windows Server 2008 Possible?
There's no "stupid reasons" as you say, only kind volunteers who maintain Java 3D as they can, and RenderInterface is probably not on their priority list. [:(]
Emmanuel Puybaret, Sweet Home 3D creator
Re: Rendering on Windows Server 2008 Possible?
Sorry i think you got this wrong, what i mean with stupid reason is:
SH3d cannot create a Render interface beacause the Server has no Hardwareaccelerated Graphics card -> Ergo the 3d Interface cannot be Created.
Because of that, i want to know if there is a way to Let a Sh3d-map to be rendered from console without starting the Main Program.
This wasnt meant to insult any Java3d Coder =)
SH3d cannot create a Render interface beacause the Server has no Hardwareaccelerated Graphics card -> Ergo the 3d Interface cannot be Created.
Because of that, i want to know if there is a way to Let a Sh3d-map to be rendered from console without starting the Main Program.
This wasnt meant to insult any Java3d Coder =)
Re: Rendering on Windows Server 2008 Possible?
To render a sh3d file from the console, please read this thread.
Emmanuel Puybaret, Sweet Home 3D creator
Re: Rendering on Windows Server 2008 Possible?
Oh you are the best [:)] this is what i was looking for [:x].
There is only one Problem, i dont know how to use it.
I Saved the Script in an File Called ConsolePhotoGenerator.Java and then started it via javac.exe ConsolePhotoGenerator.java
But it then it says package org.sunflow.system.ui does not exist.
Would you please help an neeewbie =)
There is only one Problem, i dont know how to use it.
I Saved the Script in an File Called ConsolePhotoGenerator.Java and then started it via javac.exe ConsolePhotoGenerator.java
But it then it says package org.sunflow.system.ui does not exist.
Would you please help an neeewbie =)
Re: Rendering on Windows Server 2008 Possible?
Hi,
okay i have read something about Java compiling, so i did
javac.exe -cp sunflow-0.07.3h.jar;SweetHome3D.jar ConsolePhotoGenerator.java
javac.exe did create ConsolePhotoGenerator.java
then i tried
Java.exe ConsolePhotoGenerator.java but it says Java can not find the Mainclass for ConsolePhotoGenerator.java.
What can i do?
okay i have read something about Java compiling, so i did
javac.exe -cp sunflow-0.07.3h.jar;SweetHome3D.jar ConsolePhotoGenerator.java
javac.exe did create ConsolePhotoGenerator.java
then i tried
Java.exe ConsolePhotoGenerator.java but it says Java can not find the Mainclass for ConsolePhotoGenerator.java.
What can i do?
Re: Rendering on Windows Server 2008 Possible?
I have some doubts about this. It should have created ConsolePhotoGenerator.class file. To simplify its use, remove the first line package com.eteks.sweethome3d.utilities; from the source code, and compile it again.javac.exe did create ConsolePhotoGenerator.java
The java command is followed by a class name, not a file, i.e. the basic command must be:
Code: Select all
java.exe ConsolePhotoGeneratorCode: Select all
java -cp lib;lib/SweetHome3D.jar;lib/Loader3DS1_2u.jar;lib/sunflow-0.07.3h.jar;lib/batik-svgpathparser-1.7.jar;lib/j3dcore.jar;lib/j3dutils.jar;lib/vecmath.jar
-Djava.library.path=lib -Xmx640m ConsolePhotoGeneratorEmmanuel Puybaret, Sweet Home 3D creator
Re: Rendering on Windows Server 2008 Possible?
Superb,
i will try this as fast as i can and tell you if it worked!
[:)]
Thank you very much
i will try this as fast as i can and tell you if it worked!
[:)]
Thank you very much
Re: Rendering on Windows Server 2008 Possible?
Note that Java 3D 1.6 allows also to run ConsolePhotoGenerator on a Linux server with no X11 Display, if you set the [font=courier new]j3d.rend[/font] system property to [font=courier new]noop[/font] .
If you use Sweet Home 3D 5.4, please follow the following instructions:
- Install JDK
- Copy / paste ConsolePhotoGenerator class to a file named [font=courier new]ConsolePhotoGenerator.java[/font]
- Download SweetHome3D-5.4jar, sunflow-0.07.3i.jar, j3dcore.jar, j3dutils.jar, vecmath.jar and batik-svgpathparser-1.7.jar
- Compile [font=courier new]ConsolePhotoGenerator.java[/font] with the following command:
- To generate the file [font=courier new]photo.png[/font] of a home stored in the file [font=courier new]home.sh3d[/font] , run the command:
[Updated links on 2020/03/02 after source code moved from CVS to SVN]
If you use Sweet Home 3D 5.4, please follow the following instructions:
- Install JDK
- Copy / paste ConsolePhotoGenerator class to a file named [font=courier new]ConsolePhotoGenerator.java[/font]
- Download SweetHome3D-5.4jar, sunflow-0.07.3i.jar, j3dcore.jar, j3dutils.jar, vecmath.jar and batik-svgpathparser-1.7.jar
- Compile [font=courier new]ConsolePhotoGenerator.java[/font] with the following command:
Code: Select all
javac -cp SweetHome3D-5.4.jar:sunflow-0.07.3i.jar -d . ConsolePhotoGenerator.java- To generate the file [font=courier new]photo.png[/font] of a home stored in the file [font=courier new]home.sh3d[/font] , run the command:
Code: Select all
java -Dj3d.rend=noop -cp .:SweetHome3D-5.4.jar:sunflow-0.07.3i.jar:j3dcore.jar:vecmath.jar:j3dutils.jar:batik-svgpathparser-1.7.jar com.eteks.sweethome3d.utilities.ConsolePhotoGenerator [i]home.sh3d[/i] [i]photo.png[/i]Emmanuel Puybaret, Sweet Home 3D creator
Re: Rendering on Windows Server 2008 Possible?
This is great.
Is there a way to have it render the photos from points of view?
Does the HomeEnvironment object provide that collection?
Is there a way to have it render the photos from points of view?
Does the HomeEnvironment object provide that collection?
Who is online
Users browsing this forum: No registered users and 2 guests