POV-Ray : Newsgroups : povray.unofficial.patches : MegaPOVPlus 0.3.1 Windows version released Server Time
2 Sep 2024 02:18:08 EDT (-0400)
  MegaPOVPlus 0.3.1 Windows version released (Message 11 to 20 of 20)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Halbert
Subject: Re: MegaPOVPlus 0.3.1 Windows version released
Date: 12 Sep 2000 21:03:39
Message: <39bed26b@news.povray.org>
I was comparing source from Megapov 0.5a and MP+ .31 and I did notice
something particularly conspicuous.
frame.h
////////////////////////////////////////////////////////////////////////////
/////////
from MP 0.5a:

struct Blob_Pattern_Data_Struct
{
  VECTOR center;/*Also point A if component is cylinderical*/
  VECTOR pointB;/*point B if component is cylinderical*/
  DBL radius;
  DBL strength;
  DBL falloff;
  PIGMENT * pigment;
  TRANSFORM * transform;
/*  int transformed;*/
/*NOTE: do benchmark to find overhead of transforms.
Use this to avoid unnecessary ones if overhead too much.*/
  int type;/*0 for spherical, 1 for cylinderical. Change to enum?*/
  int function;/*The density function. 0 for standard blob. Change to
enum?*/
  BLOB_PATTERN_DATA * next;
};

//////////////////////////////////////////////////////////////////////
// from MP+ .31

typedef struct Blob_Pattern_Data_Struct BLOB_PATTERN_DATA;
struct Blob_Pattern_Data_Struct
{
  VECTOR center;/*Also point A if component is cylinderical*/
  VECTOR pointB;/*point B if component is cylinderical*/
  DBL radius;
  DBL strength;
  DBL falloff;
  PIGMENT * pigment;
  TRANSFORM * transform;
  BLOB * blob;
  TPATTERN * pattern;
  int inverse;
  int type;/*0=sphere, 1=cylinder, 2=box, 3=pattern, 4=blob. Change to
enum?*/
  int function;/*The density function. 0 for standard blob. Change to
enum?*/
  BLOB_PATTERN_DATA * next;
};

//////////////////////////////////////////////////////////////////////////
This is the main thing that kept me from making a servicable Windows build.
There just happens to be a Windows data structure of the name BLOB. I don't
know how Jetlag handled this. Or whether it has anything to do with
anything.


--


http://www.capital.net/~hhawkins


Post a reply to this message

From: Chris Huff
Subject: Re: MegaPOVPlus 0.3.1 Windows version released
Date: 12 Sep 2000 22:04:54
Message: <chrishuff-F48D35.21064612092000@news.povray.org>
In article <39bed26b@news.povray.org>, "Halbert" <hha### [at] capitalnet> 
wrote:

> I was comparing source from Megapov 0.5a and MP+ .31 and I did notice
> something particularly conspicuous.
...snip...
> This is the main thing that kept me from making a servicable Windows 
> build. There just happens to be a Windows data structure of the name 
> BLOB. I don't know how Jetlag handled this. Or whether it has 
> anything to do with anything.

That is part of the code for allowing blob objects to be used with the 
blob pattern, it has nothing to do with the rendering, creating, or 
destroying of blob objects which seems to be the problem. And that 
structure exists in other POV versions too, it is the name of the blob 
object's struct. It is normally typedef'ed in blob.h, but that 
definition is moved to frame.h in MegaPOVPlus to allow the blob pattern 
to use it without running into multiple definitions.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Halbert
Subject: Re: MegaPOVPlus 0.3.1 Windows version released
Date: 12 Sep 2000 22:39:38
Message: <39bee8ea@news.povray.org>
I see. Something to keep in mind next time I try to compile it.


--


http://www.capital.net/~hhawkins


Post a reply to this message

From: Jetlag
Subject: Re: MegaPOVPlus 0.3.1 Windows version released
Date: 13 Sep 2000 01:43:48
Message: <39bf1414@news.povray.org>
> That is part of the code for allowing blob objects to be used with the
> blob pattern, it has nothing to do with the rendering, creating, or
> destroying of blob objects which seems to be the problem. And that
> structure exists in other POV versions too, it is the name of the blob
> object's struct. It is normally typedef'ed in blob.h, but that
> definition is moved to frame.h in MegaPOVPlus to allow the blob pattern
> to use it without running into multiple definitions.

The BLOB keyword does make all the Windows GUI files blow up. This is new
because frame.h is included in them, while blob.h is not. I usually just
change it globally from BLOB to BLOBA or something since my main goal to
just get a compile anyway. There are other issues to deal with before it'll
compile, but most are trivial.


Post a reply to this message

From: Jetlag
Subject: Re: MegaPOVPlus 0.3.1 Windows version released
Date: 13 Sep 2000 02:02:22
Message: <39bf186e$1@news.povray.org>
Actually there is a very simple way to fix it [kludge], in frame.h just
change:

#define BlobPatternPatch

-- to: --

#ifndef POVWIN_FILE
  #define BlobPatternPatch
#endif

Now, if only the blob bug was that easy...


Post a reply to this message

From: Chris Huff
Subject: Re: MegaPOVPlus 0.3.1 Windows version released
Date: 14 Sep 2000 06:45:01
Message: <chrishuff-A8CD66.05465514092000@news.povray.org>
In article <01c01d09$d01f5780$ab7889d0@daysix>, "H. E. Day" 
<Pov### [at] aolcom> wrote:

> I'm hoping you can fix it before my time runs out for the IRTC. :)
> You can, right?

I'm working on it when I can. Unfortunately, school is now taking most 
of my time.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Chris Huff
Subject: Re: MegaPOVPlus 0.3.1 Windows version released
Date: 14 Sep 2000 06:47:24
Message: <chrishuff-2D5FD4.05491814092000@news.povray.org>
In article <39bf186e$1@news.povray.org>, "Jetlag" 
<bga### [at] microsoftcom> wrote:

> Actually there is a very simple way to fix it [kludge], in frame.h just
> change:

If you can call that fixing...you just disabled the blob pattern on 
Windows machines.
I would change the name "BLOB" to something like "BLOB_OBJ" or 
"META_BALL". Or maybe "GOO_BALL".

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Jetlag
Subject: Re: MegaPOVPlus 0.3.1 Windows version released
Date: 14 Sep 2000 11:03:53
Message: <39c0e8d9@news.povray.org>
> If you can call that fixing...you just disabled the blob pattern on
> Windows machines.

Nope, it just disables the blob pattern initialization strictly within the
Windows GUI files; POVWIN_FILE is only defined in those files.  But when
other files include it, it still in turns on the blob pattern patch. I even
went ahead and tested your demo scenes, just in case, and they work
perfectly.


Post a reply to this message

From: Halbert
Subject: Re: MegaPOVPlus 0.3.1 Windows version released
Date: 14 Sep 2000 11:48:48
Message: <39c0f360@news.povray.org>
I believe I like "GOO_BALL". I had already done it with the disabled blob
pattern but your right; it really isn't much of a fix. Maybe one day I might
want to try experimenting with the blob pattern.


--


http://www.capital.net/~hhawkins


Post a reply to this message

From: Chris Huff
Subject: Re: MegaPOVPlus 0.3.1 Windows version released
Date: 14 Sep 2000 17:09:10
Message: <chrishuff-CDF16A.16110314092000@news.povray.org>
In article <39c0e8d9@news.povray.org>, "Jetlag" <bga### [at] microsoftcom> 
wrote:

> Nope, it just disables the blob pattern initialization strictly 
> within the Windows GUI files; POVWIN_FILE is only defined in those 
> files.  But when other files include it, it still in turns on the 
> blob pattern patch. I even went ahead and tested your demo scenes, 
> just in case, and they work perfectly.

Oh, ok...I will include that fix in my code then. I still think BLOB_OBJ 
or something would be better, but it is too much for me to do right 
now(my text editor supports regular expressions and multi-file 
operations, but I don't...yet).

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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