Subject:
|
Re: LDraw road macro update
|
Newsgroups:
|
lugnet.cad.ray
|
Date:
|
Sun, 21 Dec 2008 03:52:01 GMT
|
Viewed:
|
12020 times
|
| |
| |
Ive updated the macros again. Lots of changes and a few bug fixes.
- All road objects are now solid and can be used within CSG operations.
- Added optional road embankments. The angle of the embankment is determined by the embankment slope and sky vector.
- Fixed the bug in flat intersections where gaps would appear at corners when roads intersected at angles greater than 180 degrees.
- The curve formed when roads intersect at angles greater than 180 degrees now is more logical. The curve is continuous and no longer wastes space.
- Hermite spline roads can now accept any number of end and tangent points. Previously there was a limit of two of each.
- The height of flat intersections can now be specified.
- Spiral and elliptical roads can now have a minimum and maximum height instead of just a maximum.
- The entire texture for each road component (i.e. road surface, road stripe, shoulder stripe, etc.) can now be specified explicitely instead of only the pigment.
- Certain macro parameters have been removed and changed into globally- declared variables instead.
- Certain macro parameters have been changed so that indices start at 0 instead of 1.
- Debug marker objects have been re-enabled or added if missing, and can be toggled on and off by setting the debug level to greater than 1.
- The texture macros have been modified slightly. They now all check for the road type.
- Many of the local variables have been renamed to be more consistent.
- The placement of the crosswalks in intersections is now more accurate.
- The macros now quit with an error and description of the problem in certain instances.
- Many other internal changes to the macros, including a heavier use of arrays to store pre-calculated information.
You can find it here:
http://lib.povray.org/searchcollection/index2.php?objectName=LegoRoad&version=2.5&contributorTag=SharkD
-Mike
|
|
Message has 1 Reply:
Message is in Reply To:
| | LDraw road macro update
|
| I've updated my LDraw road macro for POV-Ray. The macros have mostly been combined into a single item and now use a more convenient syntax. I've also added an Archemedes spiral in addition to the Nautilus spiral, and removed the dependancy on Chris (...) (16 years ago, 25-Jun-08, to lugnet.cad.ray, FTX)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|