Thanks for the replys,
Im aware that it means not, however i have no idea how to use it in this circumstance, since not returns a bool and not a pointer, which is what the glvertex3fv wants.
...
Type: Posts; User: M109uk
Thanks for the replys,
Im aware that it means not, however i have no idea how to use it in this circumstance, since not returns a bool and not a pointer, which is what the glvertex3fv wants.
...
Hello again,
i have another c++ line that i dont really get...
glVertex3fv(!(Cloud->Center + (Cloud->vx + Cloud->vy) * -Cloud->Radius));
What is with the '!' im learning some c++ as i...
Hmmm maybe the stall was just my system playing up, it does'nt seem to happen anymore... :?:
Doh!!!
Nevermind me.... it figures i would find the answer after a made a post :)
function carmack_func(x: Single): Single;
var
XHalf: Single;
i: Integer Absolute x;
X2: Single...
Hi,
Im having a problem with a function converted for me by another member, it seems to create a value out of range.
the delphi conversion is:
function carmack_func(const x: Single): Single;...
Ok many thanks anyway :)
i think i shall start from the beginning and try converting it without GLScene for now.
I shall post the demo if im successfull :)
Thanks again
Nic
Im completly stumped now,
If it helps, i have updated the ZIP file (as mentioned before).
Many thanks
Nic
Robert Kosek:
The procedure expects a pointer type.
I shall try your suggestion. Thanks.
User137:
Well im not really any good with c/c++ and my only experiance with it was a simple hellow world...
It looks great :D
Maybe a little bug, i was listening to the Blimm explanation, then went to start listening to the sky explantion and none of the keys would work (movement, esc, etc) but mouse...
I tryed that and got an invalid typcast error, would this work:
glVertexPointer(3, GL_FLOAT, 0, @Cloud.vBuffer^[0]);
glColorPointer(4, GL_FLOAT, 0, @Cloud.cBuffer^[0]);
glTexCoordPointer(2,...
Great thanks :)
seems to work, now i seem to be having problems again with the following section, it loops through a few times and then an access violation:
glVertexPointer(3, GL_FLOAT, 0,...
User137:
Thanks for the idea,
i gave it a try, and it just kept coming back with an invalid typcast error.
Robert Kosek:
Thanks again,
I had to make a small adjustment (otherwise i kept...
Thanks for that, i always woundered what the difference between the two was :)
Ah sorry, i forgot to post that bit :oops:
type
PVector2f = ^TVector2f;
PVector3f = ^TVector3f;
PVector4f = ^TVector4f;
TVolumetricCloud = Class
//
vBuffer: PVector3f;
Hi again,
I have changed the code to use pointers instead, however i am getting an access violation error when i add data to the pointer (around the 20th item to be added)
am i doing something...
Great thanks for the quick reply :D
I have inserted your carmack_func, there where 2 problems, delphi didn't like the inline; nor the int(X), but removing the inline; and changing int(x) to...
Hi,
Im still trying to find out why my version is a lot slower than the C++ version, although i have a few ideas of my own to speed it up. but for now i wish to confirm that my C++ conversion is...
Wow, sharp eye... that seemed to have solved the access violation errors :)
Now the only problem is that the speed is, urm well none existant..
Many thanks
Hi all,
I found a C++ OpenGL example of Volumetric Clouds a while back, and found it on my HDD while cleaning up.. so i am trying to make a GLScene port of it... now my C++ skills are urm some...
Thanks for the replys :)
the size does'nt really bother me as such, i was just woundering if i was doing something wrong lol
although im not too sure about using any compression tools. but how...
Hi again,
I was just woundering if the large filesize of the application is normal, my exe is around 9.86mb when compiled with lazarus, but only 1.42mb with delphi.. is there a way that i can make...
Great thanks for the help,
everything mostly seems to be working :)
the only problem is the several internal errors.. is there any way to find out exactly what the errors are?
thanks
Thanks for the reply :)
Yeah, i have noticed there are a few things that i still have to get used to, such as not having global environment paths and such :)
I have managed to solve the problem...
Hi,
I thought i would give lazarus a go since i would like to have a cross platform engine, how ever im hitting nothing except problems with it, and im just woundering if its common problems with...
thats great thanks :)
it works great now.. it was'nt to do with my function because i checked it and it was returning an object, but it just was'nt returning the object. but all is working great now...