Re: Ocean Simulator: The research continues...

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

gabio
Posts: 0
Joined: Thu Jan 15, 2004 6:41 am
Location: Canada - Québec - Sherbrooke
Contact:

Post by gabio »

they don't yea... but you can add up to 20 if i remember right. i saw someone using up to 20 wave effect to imitate an ocean like yours.

xeetstreet
Posts: 0
Joined: Sun Nov 21, 2004 7:52 am

Post by xeetstreet »

simonharvey wrote:I dont think it will make it for 2.36, because of time constraints and also the politics of adding 3rd party libraries to the blender codebase.
I figured that'd be an issue too. Here is a free, efficient alternative to FFTW: http://ldesoras.free.fr/prod.html. I've used it before for audio eq work; I have no idea if it provides the features you need.

EDIT: Now that I look at it, it seems you'd probably need 2d transformations and that library wouldn't work. Hmmm. Is there, at least, a test build for Windows we could play with? :wink:

LetterRip
Posts: 0
Joined: Thu Mar 25, 2004 7:03 am

Post by LetterRip »

I dont think it will make it for 2.36, because of time constraints and also the politics of adding 3rd party libraries to the blender codebase.
Why would FFTW be a problem, since it is GPL?

We have external libraries for a number of other things, so I don't see why a highly useful library such as FFTW would be a problem. Ask Ton (kaito) on irc, or ask on bf-committers.

A fast fourier library will be needed for a number of effects simulation tools such as smoke, fluids, etc. So FFTW is generally useful.

LetterRip

trogdor
Posts: 0
Joined: Mon Aug 02, 2004 2:30 am

Post by trogdor »

wow, i just re-found this thread, and :shock: :shock:
those screenshots are AMAZING. keep it up!!!

simonharvey
Posts: 0
Joined: Tue May 18, 2004 8:11 am

Post by simonharvey »

I have had a couple of hours spare and I have decided to implement an OceanFFT texture module to allow the artist to use the smaller wave detail without having to use hundreds of thousands of verticies,

I have implemented a GUI, and the texturing code and I am currently on the Pre render setup function however I have come up against a compile problem:

I get:

Code: Select all

source/blender/render/intern/source/renderPreAndPost.c:127: error: dereferencing pointer to incomplete type
On the following line:

Code: Select all

        tex= G.main->tex.first;
The compiler that I am using is GCC 3.3.2-1. I imagine that other blender developers have run into this problem, my question to you is: How did you get rid of the error?

Kind Regards
Simon Harvey

harkyman
Posts: 98
Joined: Fri Oct 18, 2002 2:47 pm
Location: Pennsylvania, USA
Contact:

Post by harkyman »

Making this a texture plugin is a great idea. If you want to only use it as a texture, you can try it with the new normal mapping. But, if you want, you can subdivide your mesh and use the plugin in as a displacement map!

gabio
Posts: 0
Joined: Thu Jan 15, 2004 6:41 am
Location: Canada - Québec - Sherbrooke
Contact:

Post by gabio »

i hope it's animatable too!
(sorry, no idea about the error)

simonharvey
Posts: 0
Joined: Tue May 18, 2004 8:11 am

Post by simonharvey »

I have had a friend tell me what the following error was:

Code: Select all

source/blender/render/intern/source/renderPreAndPost.c:127: error: dereferencing pointer to incomplete type
So if anybody did/does know you dont need to post here.


Kind Regards
Simon Harvey

simonharvey
Posts: 0
Joined: Tue May 18, 2004 8:11 am

Post by simonharvey »

Hi All

Well after getting rid of my compile time bugs and typing in the command at the prompt I have managed to get:

Image

This shows the texture GUI code (as it stands).

Once finished you will be able to either create a texture OceanFFT either by taking the data from an OceanFFT effect, or by generating it from the parameters you see in the screen shot.

What you cant see is the texture mapping code in the background that has been implemented, unfortunetly OceanBlender? still segfaults when anything is being accessed, so I guess that their is still more debugging to do. :(

I guess that is it for now.

Kind Regards
Simon Harvey

harkyman
Posts: 98
Joined: Fri Oct 18, 2002 2:47 pm
Location: Pennsylvania, USA
Contact:

Post by harkyman »

Just want you to know that people are still interested in your project. This will be a great part of Blender's toolkit.

matt_e
Posts: 410
Joined: Mon Oct 14, 2002 4:32 am
Location: Sydney, Australia
Contact:

Post by matt_e »

Ditto what harkyman said. Doing it as a texture is very cool, but please don't neglect the 'effect' version. The problem with a displacement texture is that you can't really see what it will turn out like in the 3D View, and makes it impossible to do things like floating buoys/ships with vertex parenting.

Using the effect in combination with the texture would be very cool though (if you got the same result from both the effect and the texture). You could subdivide your mesh to a medium detail and use the effect with live previews in the 3D View, but use the texture on top of the mesh as a displacement map and/or bump map, for the extra fine details at render time.

Cheers

macouno
Posts: 0
Joined: Tue Nov 18, 2003 3:37 am

Post by macouno »

Agreeing as well... I love where this is going... and broken does have a point.

llunasol
Posts: 0
Joined: Fri Jan 23, 2004 12:09 pm

Post by llunasol »

Looks wonderful as Texture and the idea of having it as Texture and FX sounds good to me. I hope to see it quite soon on Blender :)

sunray
Posts: 0
Joined: Wed Jan 05, 2005 2:48 am

Post by sunray »

Any news? :D

bullx
Posts: 0
Joined: Mon Jan 05, 2004 9:25 pm

Post by bullx »

i'm also interested in this as a lot of person are.
give us some news, please.

Post Reply