POV-Ray : Newsgroups : povray.off-topic : vrml Server Time
4 Dec 2024 03:32:04 EST (-0500)
  vrml (Message 1 to 4 of 4)  
From: jr
Subject: vrml
Date: 17 Oct 2019 09:00:00
Message: <web.5da86553ac32a4fbfeeb22ff0@news.povray.org>
hi,

the attached archive contains an example of the POV-Ray -> VRML stuff I've
embarked on, at this stage that is the conversion of DF3 data to an equivalent
VRML PointSet.

the DF3s were created from a single image ('lion.png'), and are therefore
unusual in that they're "thin".  good enough for test data though.

an unpublished utility was used to convert the DF3s to a VRML prototype (node),
and stored in 'lion.wrl'; a prototype is a custom node which is useful when
multiple copies of some object are needed, and help with organising stuff akin
to a library.

'lion.wrl' is stand-alone, but I've added another file, 'lion-rotate.wrl', which
does what it says on the tin, displaying and rotating the data read from
'lion.wrl'.  open either file from your VR browser of choice.

wrt the 'spiral' conversion, found it now:
<https://news.povray.org/povray.text.scene-files/thread/%3Cweb.5d8bd6a7e84f6fc6feeb22ff0%40news.povray.org%3E/>

also, VRML offers a 'IndexFaceSet' node type which could easily be used to
represent POV-Ray meshes, that's something I'll be looking at soon (fingers
crossed).


regards, jr.


Post a reply to this message


Attachments:
Download 'lion.tar.xz.dat' (28 KB)

From: jr
Subject: Re: vrml
Date: 17 Oct 2019 10:40:00
Message: <web.5da87c1942f938b8feeb22ff0@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> ...
> wrt the 'spiral' conversion, found it now:

quickly cobbled together a 'spiral-rotate.wrl', to illustrate (ease of) reuse.


Post a reply to this message


Attachments:
Download 'spiral-rotate.wrl.dat' (1 KB)

From: William F Pokorny
Subject: Re: vrml
Date: 18 Oct 2019 08:35:52
Message: <5da9b1a8$1@news.povray.org>
On 10/17/19 10:35 AM, jr wrote:
> "jr" <cre### [at] gmailcom> wrote:
>> ...
>> wrt the 'spiral' conversion, found it now:
> 
> quickly cobbled together a 'spiral-rotate.wrl', to illustrate (ease of) reuse.
> 

Thanks. I can sort of follow this ascii file.

However, I've not been able to view anything you've posted in firefox. 
Suppose I don't have a necessary extension installed or something.  Not 
done any digging yet on how to get things going.

Bill P.


Post a reply to this message

From: jr
Subject: Re: vrml
Date: 18 Oct 2019 09:35:01
Message: <web.5da9bf5642f938b8feeb22ff0@news.povray.org>
hi,

William F Pokorny <ano### [at] anonymousorg> wrote:
> On 10/17/19 10:35 AM, jr wrote:
> > "jr" <cre### [at] gmailcom> wrote:
> >> ...
> >> wrt the 'spiral' conversion, found it now:
> > quickly cobbled together a 'spiral-rotate.wrl', to illustrate (ease of) reuse.
>
> Thanks. I can sort of follow this ascii file.
>
> However, I've not been able to view anything you've posted in firefox.
> Suppose I don't have a necessary extension installed or something.  Not
> done any digging yet on how to get things going.

you will need a VR browser.  people I know of use multiple different for testing
etc, but I use (only) 'freewrl'[*].  in addition to the executable, it installs
a browser plug-in which works for both Firefox and Seamonkey on Slackware 14.1 +
14.2.

you will also need to add a couple of mime types, unless Ubuntu boxes have them
already.  my two-line '~/.mime-types' file reads:
model/x3d+vrml[tab]x3dv x3dvz
model/x3d+xml[tab]x3d x3dz

then opening a link to a world file from within Firefox pops up a vr browser
window.

[*] http://freewrl.sourceforge.net/

given you appreciate books, I picked an unused copy of Rikk Carey & Gavin Bell
"The Annotated VRML 2.0 Reference Manual", about a year ago.  ;-)
(it comes with an interactive version of the book plus examples on CD, send me
an email if you're interested)


regards, jr.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.