POV-Ray : Newsgroups : povray.beta-test : prefix a keyword? meshcam conflict Server Time
27 Dec 2024 13:35:25 EST (-0500)
  prefix a keyword? meshcam conflict (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: omniverse
Subject: prefix a keyword? meshcam conflict
Date: 9 Nov 2016 18:35:01
Message: <web.5823b1c918f20e579c5d6c810@news.povray.org>
Concerning, at least, the version 3.7.1-alpha.8820458+av228.msvc14.win64.

Did anyone already know about this?

...\scenes\camera\mesh_camera\meshcam_persp_demo.pov

Lines 57 and 59 have a #declare prefix=

Line 61 has #declare
mesh_file=concat(concat(concat(concat(concat(concat(prefix,str( {snip!}

Keyword coloring is not shown in the 3.7.0.msvc10.win64 version.

I encountered this a couple weeks ago and could not find anything about it at
GitHub, wiki.povray or here.

Bob


Post a reply to this message

From: Alain
Subject: Re: prefix a keyword? meshcam conflict
Date: 9 Nov 2016 18:51:54
Message: <5823b69a@news.povray.org>

> Concerning, at least, the version 3.7.1-alpha.8820458+av228.msvc14.win64.
>
> Did anyone already know about this?
>
> ...\scenes\camera\mesh_camera\meshcam_persp_demo.pov
>
> Lines 57 and 59 have a #declare prefix=
>
> Line 61 has #declare
> mesh_file=concat(concat(concat(concat(concat(concat(prefix,str( {snip!}
>
> Keyword coloring is not shown in the 3.7.0.msvc10.win64 version.
>
> I encountered this a couple weeks ago and could not find anything about it at
> GitHub, wiki.povray or here.
>
> Bob
>
>

Also, all those nested concat do look rather suspicious to me, given 
that concat(...) can take an arbitrary number of parameters.
Maybe the nesting is interfering with keyword recognition and colouring.


Post a reply to this message

From: MichaelJF
Subject: Re: prefix a keyword? meshcam conflict
Date: 9 Nov 2016 19:45:03
Message: <web.5823c0b090dd8a48303d73de0@news.povray.org>
"omniverse" <omn### [at] charternet> wrote:
> Concerning, at least, the version 3.7.1-alpha.8820458+av228.msvc14.win64.
>
> Did anyone already know about this?
>
> ...\scenes\camera\mesh_camera\meshcam_persp_demo.pov
>
> Lines 57 and 59 have a #declare prefix=
>
> Line 61 has #declare
> mesh_file=concat(concat(concat(concat(concat(concat(prefix,str( {snip!}
>
> Keyword coloring is not shown in the 3.7.0.msvc10.win64 version.
>
> I encountered this a couple weeks ago and could not find anything about it at
> GitHub, wiki.povray or here.
>
> Bob

The meshcam is used by a very small amount of users only (I can remember only
two users and one developer posting issues due to the meshcam here (Jaime,
Christoph Lipka and myself). Can you explain what you will
do with the meshcam? There seems to be some problems, but I never found the time
to post it here. With the sample files I never noticed troubles.

Best regards,
Michael


Post a reply to this message

From: omniverse
Subject: Re: prefix a keyword? meshcam conflict
Date: 10 Nov 2016 05:05:00
Message: <web.582445ba90dd8a489c5d6c810@news.povray.org>
"MichaelJF" <mi-### [at] t-onlinede> wrote:
> "omniverse" <omn### [at] charternet> wrote:
> > Concerning, at least, the version 3.7.1-alpha.8820458+av228.msvc14.win64.
> >
> > ...\scenes\camera\mesh_camera\meshcam_persp_demo.pov
> >
> > Lines 57 and 59 have a #declare prefix=
> >
> > Line 61 has #declare
> > mesh_file=concat(concat(concat(concat(concat(concat(prefix,str( {snip!}
> >
> > Keyword coloring is not shown in the 3.7.0.msvc10.win64 version.
>
> The meshcam is used by a very small amount of users only (I can remember only
> two users and one developer posting issues due to the meshcam here (Jaime,
> Christoph Lipka and myself). Can you explain what you will
> do with the meshcam?

I've only rediscovered it to try the baked textures, although I knew it was
being talked about several years ago. Not a lot I can do with it yet, very new
thing to me and I'm not very good with complicated works like it anyhow.

I thought it might be the "dictionary" portion causing this, C. Lipka recently
added, and I keep using the latest alpha version that's available.
That was only around a couple months or so. Found I still have an earlier
version from April this year so checked it and 'prefix' is not a keyword, like
the original 3.7 executable.

So again, I suspect prefix got added and those meshcam files use lower case
identifiers almost exclusively. I haven't looked all through it but I think that
might be the only place prefix is used.

The long concatenate line seems okay, I just didn't post the whole thing before:

  #declare
mesh_file=concat(concat(concat(concat(concat(concat(prefix,str(image_width,0,0)),"x"),str(image_height,0,0)),"-angle_")
,str(c_angle,0,0)),".inc");

Of course, now with current alpha versions of POV-Ray 3.7.1 (Win64 at least) the
word needs a change to Prefix instead of prefix to be able to parse and render.

Bob


Post a reply to this message

From: Jim Holsenback
Subject: Re: prefix a keyword? meshcam conflict
Date: 10 Nov 2016 07:36:19
Message: <582469c3$1@news.povray.org>
On 11/9/2016 6:31 PM, omniverse wrote:
> Concerning, at least, the version 3.7.1-alpha.8820458+av228.msvc14.win64.
>
> Did anyone already know about this?
>
> ...\scenes\camera\mesh_camera\meshcam_persp_demo.pov
>
> Lines 57 and 59 have a #declare prefix=
>
> Line 61 has #declare
> mesh_file=concat(concat(concat(concat(concat(concat(prefix,str( {snip!}
>
> Keyword coloring is not shown in the 3.7.0.msvc10.win64 version.
>
> I encountered this a couple weeks ago and could not find anything about it at
> GitHub, wiki.povray or here.
>
> Bob
>
>
http://wiki.povray.org/content/Reference:Mesh#Wavefront_Import


Post a reply to this message

From: Jim Holsenback
Subject: Re: prefix a keyword? meshcam conflict
Date: 10 Nov 2016 09:13:29
Message: <58248089$1@news.povray.org>
On 11/9/2016 6:31 PM, omniverse wrote:
> Concerning, at least, the version 3.7.1-alpha.8820458+av228.msvc14.win64.
>
> Did anyone already know about this?
>
> ...\scenes\camera\mesh_camera\meshcam_persp_demo.pov

also in meshcam_ortho_demo.pov ... I created issue on github and 
attached the corrected files


Post a reply to this message

From: clipka
Subject: Re: prefix a keyword? meshcam conflict
Date: 10 Nov 2016 11:44:37
Message: <5824a3f5$1@news.povray.org>
Am 10.11.2016 um 15:13 schrieb Jim Holsenback:
> On 11/9/2016 6:31 PM, omniverse wrote:
>> Concerning, at least, the version 3.7.1-alpha.8820458+av228.msvc14.win64.
>>
>> Did anyone already know about this?
>>
>> ...\scenes\camera\mesh_camera\meshcam_persp_demo.pov
> 
> also in meshcam_ortho_demo.pov ... I created issue on github and
> attached the corrected files

Did you fix the symptoms (the particular naming conflict) or address the
root cause (the use of all-lowercase variable names, which are generally
discouraged due to the potential conflict with future keywords)?


Post a reply to this message

From: omniverse
Subject: Re: prefix a keyword? meshcam conflict
Date: 10 Nov 2016 12:20:01
Message: <web.5824ab8090dd8a489c5d6c810@news.povray.org>
Jim Holsenback <spa### [at] nothanksnet> wrote:
> >
> http://wiki.povray.org/content/Reference:Mesh#Wavefront_Import

Thanks Jim. Don't know how I couldn't find that. Searched again and there it
was. Although, interestingly, povray GitHub search for 'mesh prefix' didn't
highlight all the "prefix" words.
My own computer still refuses to locate "prefix" within those scene files! Using
search contents of files. And yet did locate a couple *.inc files that had been
added, actually "prefixed" for that matter, but not the other two camera mesh
demo files.

Thanks for telling about that obj import, I sure didn't know about it until now.
I was able to give it a try, successful on a small file and crashed povray on a
22MB file. All this is new to me, learning as I go.

Bob


Post a reply to this message

From: Jim Holsenback
Subject: Re: prefix a keyword? meshcam conflict
Date: 10 Nov 2016 16:13:24
Message: <5824e2f4$1@news.povray.org>
On 11/10/2016 11:44 AM, clipka wrote:
> Am 10.11.2016 um 15:13 schrieb Jim Holsenback:
>> On 11/9/2016 6:31 PM, omniverse wrote:
>>> Concerning, at least, the version 3.7.1-alpha.8820458+av228.msvc14.win64.
>>>
>>> Did anyone already know about this?
>>>
>>> ...\scenes\camera\mesh_camera\meshcam_persp_demo.pov
>>
>> also in meshcam_ortho_demo.pov ... I created issue on github and
>> attached the corrected files
>
> Did you fix the symptoms (the particular naming conflict) or address the
> root cause (the use of all-lowercase variable names, which are generally
> discouraged due to the potential conflict with future keywords)?
>
just did prefix->Prefix


Post a reply to this message

From: Jim Holsenback
Subject: Re: prefix a keyword? meshcam conflict
Date: 10 Nov 2016 17:11:55
Message: <5824f0ab$1@news.povray.org>
On 11/10/2016 12:16 PM, omniverse wrote:
> Jim Holsenback <spa### [at] nothanksnet> wrote:
>>>
>> http://wiki.povray.org/content/Reference:Mesh#Wavefront_Import
>
> Thanks Jim. Don't know how I couldn't find that. Searched again and there it
> was.

yer welcome ... fyi: i'm fairly sure that i'm up to date with "keywords" 
on this page: http://wiki.povray.org/content/Reference:Keywords

as a side note there are also two other keywords associated with the 
wavefront import functionality ... suffix and obj


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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