| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 183 online users. » 0 Member(s) | 178 Guest(s) Applebot, Baidu, Bing, DuckDuckGo, Google
|
| Latest Threads |
Discussion - proposal to ...
Forum: Official File Specifications/Standards
Last Post: Roland Melkert
34 minutes ago
» Replies: 23
» Views: 1,958
|
LEGO Parts Guide - Only 4...
Forum: Part Requests
Last Post: Gerald Lasser
6 hours ago
» Replies: 30
» Views: 3,077
|
A fresh list of "most com...
Forum: Part Requests
Last Post: Gerald Lasser
6 hours ago
» Replies: 12
» Views: 6,953
|
77255 Lightning McQueen p...
Forum: Part Requests
Last Post: Peter Grass
Today, 0:53
» Replies: 3
» Views: 405
|
Help Wanted: Discord Admi...
Forum: Help Wanted
Last Post: Orion Pobursky
Yesterday, 23:10
» Replies: 0
» Views: 72
|
LDCad 1.7 Beta 2 (win+lin...
Forum: LDraw Editors and Viewers
Last Post: Roland Melkert
Yesterday, 20:39
» Replies: 24
» Views: 2,058
|
Complex Figures (Duplo/Te...
Forum: Official File Specifications/Standards
Last Post: Chris Böhnke
2026-02-01, 19:47
» Replies: 5
» Views: 242
|
6x8x2 "helicopter" Windsc...
Forum: Part Requests
Last Post: Rene Rechthaler
2026-01-31, 18:08
» Replies: 1
» Views: 151
|
LDraw.org 2026-01 Parts U...
Forum: LDraw.org Announcements
Last Post: Orion Pobursky
2026-01-30, 15:05
» Replies: 2
» Views: 458
|
A Friends's little help t...
Forum: Parts Authoring
Last Post: Takeshi Takahashi
2026-01-30, 14:32
» Replies: 2
» Views: 424
|
|
|
| LDView POV output |
|
Posted by: Michael Horvath - 2014-01-05, 21:26 - Forum: LDraw File Processing and Conversion
- Replies (15)
|
 |
Some of my parts are written as having color "LDXColor60_slope", but this color is not defined anywhere in the POV file. What should I do in the meantime? Is there a workaround?
[edit]
This is the change to the POV code I did to fix it. Instead of this:
Code: #ifndef (LDXSkipChromeColorMacro)
#macro LDXChromeColor(r, g, b)
#if (version >= 3.1) material { #end
texture {
pigment { rgbf <r,g,b,0> }
#if (LDXQual > 1)
finish { ambient LDXAmb diffuse LDXDif }
finish { phong LDXPhong phong_size LDXPhongS reflection LDXChromeRefl brilliance LDXChromeBril metallic specular LDXChromeSpec roughness LDXChromeRough}
#end
}
#if (version >= 3.1) } #end
#end
#end
I did this:
Code: #ifndef (LDXSkipChromeColorMacro)
#macro LDXChromeColor(r, g, b)
#if (version >= 3.1) material { #end
texture {
pigment { rgbf <r,g,b,0> }
#if (LDXQual > 1)
finish { ambient LDXAmb diffuse LDXDif }
finish { phong LDXPhong phong_size LDXPhongS reflection LDXChromeRefl brilliance LDXChromeBril metallic specular LDXChromeSpec roughness LDXChromeRough}
#end
}
#if (version >= 3.1) } #end
#end
#macro LDXChromeColor_slope(r, g, b)
#if (version >= 3.1) material { #end
texture {
pigment { rgbf <r,g,b,0> }
#if (LDXQual > 1)
finish { ambient LDXAmb diffuse LDXDif }
finish { phong LDXPhong phong_size LDXPhongS reflection LDXChromeRefl brilliance LDXChromeBril metallic specular LDXChromeSpec roughness LDXChromeRough}
normal { bumps 0.3 scale 25*0.02 }
#end
}
#if (version >= 3.1) } #end
#end
#end
And then I did this:
Code: #ifndef (LDXColor60) // Chrome Antique Brass
#declare LDXColor60 = LDXChromeColor(0.392157,0.352941,0.298039)
#declare LDXColor60_slope = LDXChromeColor_slope(0.392157,0.352941,0.298039)
#end
|
|
|
| DATHeader 3.0.14.0 - just released |
|
Posted by: Michael Heidemann - 2014-01-05, 19:05 - Forum: Parts Author Tools
- Replies (12)
|
 |
Based on the items below I updated DATHeader today.
You can download as usual from DATHeader homepage.
Please leave your comments to this version as answer to this post - thanks.
I like to sum up here my and hopefully your ideas for improvements of DATHeader. Or, if you say your ideas are not good please also leave a comment. The result should be to improve DATHeader for better work.
1)
Based on the current origin of this part (http://www.ldraw.org/cgi-bin/ptdetail.cg...s/x582.dat) I think it might be worth to check for the origin to be inside the bounding box. If not give a warning. (Already coded in my develop version).
2)
Based on the current comment on this part (http://www.ldraw.org/cgi-bin/ptdetail.cg.../u9292.dat) I think it might be worth to check from the end of the file to the first occurence of a real line for only line breaks and delete those empty lines.
Edit:
DATHeader write only one CR_LF after the last line with content if it is saved. So it is only necessary to detect those unnecessary lines and present the result to the user.
Edit:
Check for those empty lines is now also implemented (Already coded in my develop version).
3)
Based on the current comments on this part (http://www.ldraw.org/cgi-bin/ptdetail.cg...47326c.dat) further documented in the thread http://forums.ldraw.org/showthread.php?t...0#pid11690 I think it might be worth to implement a basic language check for at least some common wrongly used words like "color vs. colour", "gray vs. grey". The words to check should be in a separate file, so we can easily extend the list of words. (Already coded in my develop version).
Edit:
I did not know that it is sooo different: http://www.statsci.org/smyth/ozus.html. There are still more pages about this issue so maybe we need a complete dictionary in australian english that I should use in DATHeader.
4)
While working on parts that should use pattern from another part it found it anoying to seach for the data of the pattern that should be integrated into the part. So I added a infobox where the dimensions of the bounding box and the center of the bounding box is noticed, so I only need to open this file in DATHeader and have the values that i need to calculate the position and the zoomlevel. (Already coded in my develop version).
|
|
|
| British vs. American English |
|
Posted by: Michael Heidemann - 2014-01-05, 18:12 - Forum: General LDraw.org Discussion
- Replies (5)
|
 |
There is just an actual discussion on the part: http://www.ldraw.org/cgi-bin/ptdetail.cg...47326c.dat that I like to have here for future reference.
Some years ago we where talking about british vs. american english for part description.
If I remember correctly we decided to use the british english to honor James Jessiman as an Australian guy.
Therefore the meta command is f.e. !COLOUR and not !COLOR.
Now I am aware that the decription of the colours in the LDConfig.ldr is not made this way. There is often gray instead grey used.
If I am right and this is our current policy the LDConfig.ldr should immediately be updated.
Also in our document for part authoring this detail should be mentioned.
|
|
|
|