Pedrollane
Eurobricks Vassals-
Content Count
23 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Everything posted by Pedrollane
-
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane posted a topic in Digital LEGO: Tools, Techniques, and Projects
I wrote a Java application to convert an LDraw model to Sunflow. Thank you to msx80 for giving me the idea with Blurender Thank Bublible I use some of your metallics materials in my application. It is not complete yet but I have tested on several models without problems. There are still things to optimize and probably bugs. Currently no progress bar, keep an eye on the console to see the progress of the work. Screenshot: Only the "render" button not "ipr" saves the image in the same directory as the stage Sunflow. (not true with the latest version) In the LDraw tab you can set : - LDraw path - Common used texterea is a solution to optimize the final mesh Examples : These models comes from here 3063 - Heartlake Flying Club 30210 - Frodo with cooking corner 30210 - Frodo with cooking corner Download : Version e - here Version d - here Version c - here Version b - here Version a - here -
[Software] Bluerender, a rendering engine for LDD
Pedrollane replied to msx80's topic in Digital LEGO: Tools, Techniques, and Projects
Hey, If you wan isometric camera you can edit scene.sc file and replace camera type pinhole by orthogonal and change fov to adjust zoom -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
Sorry, actually I'm busy but thre is a solution. If you use the button "Convert to SC file" application does not launch the rendering. It's always possible edit generated SC file remove all before # START Ldraw color and all from camera. @msx80 I publish my code when I have more time :) -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
@Dilvish The only documentation on Sunflow is the old wiki dump I have fixed bugs color on doors and barrier You can download the new version here -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
I have udpate the last version you can redownload here. -Extract archive and move into the lib directory If you use a JDK : JDK_PATH\bin\java -Xmx1G -server -jar sunflow.jar If you use a JRE JDK_PATH\bin\java -Xmx1G -jar sunflow.jar -server option is faster than default -client -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
New version of LDraw2Sunflow : Basic support of Darats files How to use : Download LGEO Library - Darats on Darats topics Extract archive. Create obj directory near LGEO Parts and STL Parts directory Use Poseray to convert all STL Parts in obj files Download primitives extract archive into obj/primitives directory You need to configure LGEO Darats directory in Ldraw tab Command line You can use command line to change logger level or clear saved preferences LOGGER=FINE -> more log LOGGER=INFO -> default log clearPref -> clear saved preferences I need to go, I hope you can use it with my very short explications -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
@Dilvish I download Datsville, I make some test and I tell you where is the problem. Edit : INFO: Module API : Unable to find a suitable parser for: "D:\Datsville\datsville _sunflow\building_007_firecompany" Sunflow use the file extension to find a parser.You must had .sc to the output file. You can make Orthographic render with Sunflow but by default some parameters (fov, aspect ratio, focus) could not be change. I change this when I have some time. @Nickless Actually you can't configure source light in the application you need to open sc file. You can read bublible tutorial for Bluerender. In the preview direction arrows move the look-at point up down Y axe, left right X axe no Z axis in this version ... -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
Sunflow is faster than PovRay -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
Darats do you know if I need to add a rotation step to your primitives ? I post some pictures of my work tomorrow -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
Yes Sunflow is include. -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
I start to integrate them but I haven't a lot of time currently. -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
I'm very interresting by .obj files for this LGEO primitives : lg_studs lg_tech_studs lg_tech_studs_logo lg_column lg_plate_column lg_cylinder lg_plate_cylinder Can you create them Darats ? -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
I found a solution to read Povray 'for' loops, and imbricated for loops currently I'm able to generate baseplate. I substitute : - 'lg_tech_knob' -> stud2a.dat - 'lg_knob' -> stud.dat @Darats : Do you know if it's possible to convert a Povray prism into triangle ? I use this link to have logo on studs : http://jc-tchang.phi...studlogo_tchang Sunflow scene file 2.1 mo Sunflow scene 40.79 mo with Darats HQ files -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
When I'm a little more advanced. I will publish all my sources under a free license. -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
Darats, I have read your post above. Sorry for the late response, When I read it, I did not know how to do it. I use only your parts not others lgeo parts. I have convert all file in stl dir, to obj format with Poseray. When I parse LDraw model, for each part I look into directory where files start with lg_ In the lg file I search line start with 'object {'and contains partname I read the obj file associate and apply rotate and translate if the are specified. Currently I do nothing else. Binoculars don't have a lg_ file only stl this is why it does not appear. -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
Two pictures First without Darats parts : Second with Darats parts (and no binoculars I don't know where they are) : Look arms, hands, shovel, motor grid. it's not yet available but soon -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
The sunflow modified sources are here -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
I used a modified version of Bluerender Sunflow version. I have checkout this version : https://bitbucket.or...8967?at=default I made changes in some classes : BoundingIntervalHierarchy ->I've change a 2 lines in subdivide function because of infinite loop some times. SCParser -> I added a noinstance=true where type equals generic-mesh Instance -> I removed return false when matrice determinant is null. AccelerationStructureFactory -> I used UniformGrid in place of BoundingIntervalHierarchy when primitive is null. -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
Thank for your feedback SylvainLS I removed the backslash in PartFinder.checkLDrawDirectory() and check other class it seems ok. Now i'm look for parts in lowercase. Shader version don't need to be 150. I have start with version 330 but is too high for my netbook I change to 150. Now I change to 130 I have find the memory leak on preview OpenGL it work now, there are no more big ugly gray and blue box You can find the last version here -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
I have update Ldraw2Sunflow : When the scene is generated a 3D preview appears, for smaller models. large models only the bounding box appears because I have memory problems.You can use the mouse to turn around the model and the direction arrows to move the camera. When you press ESC or close the window, the last position of the camera is used to generate the Sunflow scene. IPR and Render buttons save the image ldraw official and unofficial parts can be in separate directory. I'm working on Darats' High quality STL files support, for the next version. Examples : Space / Ice Planet 2002 / 6983 - Ice Station Odyssey 42039 - 24 Hours Race Car / Technic -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
You can solve this warning : Go into your Start Menu and type regedit into the search field. Navigate to path HKEY_LOCAL_MACHINE\Software\JavaSoft Right click on the JavaSoft folder and click on New -> Key Name the new Key Prefs and everything should work. Direct link to solution aug 24, 2015 3:26:58 EM com.sunflow.converter.ldrawtosunflow.LdrawConverterMulti2 parseFile SEVERE: Erreur sur la ligne 0.0 -4.0 0.0 aug 24, 2015 3:26:58 EM com.sunflow.converter.ldrawtosunflow.LdrawConverterMulti2 parseFile SEVERE: Erreur sur la ligne triangles 144 For this error, without the file difficult to find -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
No need more jar, all is in the package. Can you send me the file ? -
[Software] LDraw2Sunflow a rendering engine for LDraw
Pedrollane replied to Pedrollane's topic in Digital LEGO: Tools, Techniques, and Projects
I fixed a bug on the pattern display. Before After You can download the new version here