Pedrollane Posted September 2, 2015 Author Posted September 2, 2015 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. Quote
Darats Posted September 2, 2015 Posted September 2, 2015 OK, so I guess you will not be able to use parts that have Studs or Understuds as I don't add them in my parts. Same for patterned parts, you won't be able to convert them into obj files, right ? I also like to add that many of my parts have some normals problems on flat surfaces. I'm currently reworking all of them to correct that, I've started from the beginning (alphabetically speaking) and some are already available in my package. This is those ones that you should convert, because the others will be reworked. I will create the binocular soon, I think I forgot to create the lg_xxxx.inc file. Quote
___ Posted September 3, 2015 Posted September 3, 2015 (edited) @Pedrollane BTW I have one suggestion for you: what about contacting msx80 via PM and JOIN BOTH OF YOUR SF EFFORTS into one "product" so the would be support for both LDD and LDRAW SF renders in one sw? Cos I know he plans to add LDRAW support sometime later but as you already have it successfuly implemented maybe you could help him or even better join your two sw into one...what do you think about the idea, hm? It'd be great I guess! Edited September 3, 2015 by bublible Quote
Dilvish Posted September 4, 2015 Posted September 4, 2015 @Pedrollane Cos I know he plans to add LDRAW support sometime later but as you already have it successfuly implemented maybe you could help him or even better join your two sw into one... When I asked he said he had no plans for LDraw support. Quote
___ Posted September 4, 2015 Posted September 4, 2015 When I asked he said he had no plans for LDraw support. You most probably did not got him quite right, I guess he meant he won't do that anytime soon as there are much more needed things needed to be done first, BUT if you look at the planed stuff here https://bitbucket.org/msx80/blueprint/issues/33/support-for-ldraw you will see it is there... So I guess if one told him he has ready that parser for him he could change his mind and simply implement it. Quote
Calabar Posted September 4, 2015 Posted September 4, 2015 I agree. Join the efforts for a single project would be a great idea and could bring to make both the projects better. Quote
___ Posted September 4, 2015 Posted September 4, 2015 (edited) I agree. Join the efforts for a single project would be a great idea and could bring to make both the projects better. + it could also theoretically allow us to do stuff similar to those I did under POVRay when I was able "mix" LDRAW and LDD into one render, so I had like for example crater baseplate inside LDD model render. Edited September 4, 2015 by bublible Quote
Pedrollane Posted September 4, 2015 Author Posted September 4, 2015 (edited) @Pedrollane BTW I have one suggestion for you: what about contacting msx80 via PM and JOIN BOTH OF YOUR SF EFFORTS into one "product" so the would be support for both LDD and LDRAW SF renders in one sw? When I'm a little more advanced. I will publish all my sources under a free license. Edited September 4, 2015 by Pedrollane Quote
Pedrollane Posted September 4, 2015 Author Posted September 4, 2015 OK, so I guess you will not be able to use parts that have Studs or Understuds as I don't add them in my parts. Same for patterned parts, you won't be able to convert them into obj files, right ? 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 Quote
___ Posted September 4, 2015 Posted September 4, 2015 When I'm a little more advanced. I will publish all my sources under a free license. Super! Quote
Dilvish Posted September 5, 2015 Posted September 5, 2015 OK, so I guess you will not be able to use parts that have Studs or Understuds as I don't add them in my parts. This is why I suggested on LDraw.org forums that you put the studs in the files. Quote
Darats Posted September 5, 2015 Posted September 5, 2015 This is why I suggested on LDraw.org forums that you put the studs in the files. I will not put the studs in my files because I need to keep the LGEO ability to remove logo on Studs. 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 You will need to subtitute: lg_studs lg_tech_studs lg_tech_studs_logo lg_column lg_plate_column lg_cylinder lg_plate_cylinder A 3 points prism is actually a triangle extruded through a specific direction. so yes you might be able to convert it into triangle. But usually I use prism to create pattern (intersection between the prism and the origianl part shape). Quote
___ Posted September 5, 2015 Posted September 5, 2015 (edited) This is why I suggested on LDraw.org forums that you put the studs in the files. I would be second that - it would allowing me make quality .obj versions of his bricks very easily cos at the moment I had to forget about it cos without studs it is quite useless + adding them myself by counting their exact position...blah, noway, it is pity really I guess. I will not put the studs in my files because I need to keep the LGEO ability to remove logo on Studs. Ah, that is pity although I understand you very well... Edited September 5, 2015 by bublible Quote
Darats Posted September 5, 2015 Posted September 5, 2015 adding them myself by counting their exact position...blah, noway, it is pity really I guess Come on, you don't want to add them by counting their exact position, but how do you think I would do it? That's not really fair... One more thing that prevent me adding studs: files size. My package is already more than 1Gb, I don't want to double the size with studs. Another thing: all studs needs to be the same: you will have high qulity studs with the parts in my library and low quality studs with the other parts. I would not like it. Quote
___ Posted September 5, 2015 Posted September 5, 2015 (edited) Come on, you don't want to add them by counting their exact position, but how do you think I would do it? That's not really fair... One more thing that prevent me adding studs: files size. My package is already more than 1Gb, I don't want to double the size with studs. Another thing: all studs needs to be the same: you will have high qulity studs with the parts in my library and low quality studs with the other parts. I would not like it. Darats, I did not want to attack you or sound somewhat disrespectful for your work: you have made perfect work, BUT I just said I would not losing my time assigning individual studs to every of your brick and as you just said yourself it would not be fair for anyone... Edited September 5, 2015 by bublible Quote
Darats Posted September 5, 2015 Posted September 5, 2015 All right. :) No problem. But actually, I'm still convinced that it shouldn't be that difficult to add studs by replacing LGEO studs and other primitive by .obj files and merge them with the part geometry. You would need a bit of programing and a .obj version of the few LGEO primitives. Quote
___ Posted September 5, 2015 Posted September 5, 2015 (edited) All right. :) No problem. But actually, I'm still convinced that it shouldn't be that difficult to add studs by replacing LGEO studs and other primitive by .obj files and merge them with the part geometry. You would need a bit of programing and a .obj version of the few LGEO primitives. Yea, and that is exactly what I do not want to go thru... I just need grab a file and convert it straight into something other without too much messing around not even saying some programming (having on mind how many bricks need to be "converted"...see that I have other things to do, this should really be for me just a work for my spare time, you know ). Edited September 5, 2015 by bublible Quote
Pedrollane Posted September 7, 2015 Author Posted September 7, 2015 All right. :) No problem. But actually, I'm still convinced that it shouldn't be that difficult to add studs by replacing LGEO studs and other primitive by .obj files and merge them with the part geometry. You would need a bit of programing and a .obj version of the few LGEO primitives. 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 ? Quote
Darats Posted September 7, 2015 Posted September 7, 2015 I can yes. I'll let you know when it's done. Quote
Darats Posted September 7, 2015 Posted September 7, 2015 Have a look here : obj - LGEO Primitives It's a rough conversion, hope it will be sufficient. Do not hesitate if you would need small adjustments. Quote
Darats Posted September 14, 2015 Posted September 14, 2015 Have you managed to to use the obj files? Quote
Pedrollane Posted September 15, 2015 Author Posted September 15, 2015 I start to integrate them but I haven't a lot of time currently. Quote
Dilvish Posted September 16, 2015 Posted September 16, 2015 Is Sunflow included with your converter? Are there special things I need to do to get the converter working with Sunflow? Quote
Pedrollane Posted September 17, 2015 Author Posted September 17, 2015 Darats do you know if I need to add a rotation step to your primitives ? I post some pictures of my work tomorrow Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.