To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.mlcadOpen lugnet.cad.mlcad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / MLCad / 368
367  |  369
Subject: 
Re: Doing Patterns and Bitmaps in MLCad
Newsgroups: 
lugnet.cad.mlcad
Date: 
Fri, 1 Sep 2000 22:44:41 GMT
Viewed: 
2067 times
  
In lugnet.cad.mlcad, Travis Cobbs writes:
"Michael Lachmann" <m.lachmann@xpoint.at> wrote in message
news:G06yIC.5C8@lugnet.com...
I was just thinking on offering something similar to bmp2dat. The other
thing always is that it should be compatible to Ldraw and than you have to
convert the bmp to something which LDraw can use too.

Ahh, ok.  Makes sense.  On the other hand, it would be really handy if you
could somehow indicate what was done, so that if a later renderer had access
to the original bitmap they could skip the quad-ized version, and just
render the bitmap as a texture.  This would of course be done with a new
comment directive.  Any chance of this?  Drawing the bitmap as a texture
would generally produce both higher quality AND faster rendering.

--Travis Cobbs (tcobbs@san.REMOVE.rr.com)


Rough idea for texture mapping options

0 TEXTURE START <fname>
<quadized verison of texture-using parts if needed>
0 TEXTURE END

A browser compatible with L-Draw woudl use the quad version ignoring the
directive. Otherwise the bitmap in fname would be used.

Perhps a new line type is needed.- ie  Type 6.

Type 6- is only treated by new browsers.

line looks like: 6 <fanme.DAT> <fname.*>

where the first param indicates the dat file to be used for the texture
and where the second param indicates the optional image format to be used
instead of the DAT file if the borwser suppourts texture mapping.  A patch
might be needed to L-Draw so that it is able to use Type 6...


Issues: local file name or URL? Upper vs Lower case..
        Format for bitmaps? - Not evreybody uses Windows *.BMP, some other
people use MAC Pict or GIF/PNG/JPEG for images as well as other more obscure
formats...
Compatibility with earlier *.DAT file viewers.

Alex



Alex



Message has 2 Replies:
  Re: Doing Patterns and Bitmaps in MLCad
 
Farlie A <alex_farlie@hotmail.com> schrieb in im Newsbeitrag: G08CIH.6B1@lugnet.com... <SNIP> (...) I could agree on this. (...) obscure (...) Generally possible, but keep in mind that writing code for Gif/Jpeg could be a license issue. (...) (...) (24 years ago, 2-Sep-00, to lugnet.cad.mlcad)
  Re: Doing Patterns and Bitmaps in MLCad
 
(...) No, that would be bad. If we're going to break compatibility with all existing programs, let's go a bit farther than just drawing bitmaps. Steve (24 years ago, 5-Sep-00, to lugnet.cad.mlcad)

Message is in Reply To:
  Re: Doing Patterns and Bitmaps in MLCad
 
"Michael Lachmann" <m.lachmann@xpoint.at> wrote in message news:G06yIC.5C8@lugnet.com... (...) Ahh, ok. Makes sense. On the other hand, it would be really handy if you could somehow indicate what was done, so that if a later renderer had access to (...) (24 years ago, 1-Sep-00, to lugnet.cad.mlcad)

24 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR