nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[2]: [Nel] Enabling Water Pools in Client


From: Nicolas Vizerie
Subject: Re: Re[2]: [Nel] Enabling Water Pools in Client
Date: Wed, 27 Feb 2002 12:36:25 +0100

Hi Robert,

That seems to be a bug : I was able to reproduce that in release build. It
comes from the ordering of transparent objects. I found that a bitfield in a
COrderingLayeredTable was not working correctly with Visual C++ in release
build only (in the begin() method). Tracing it showed that it may be a
compiler bug. I split it in several fields and it solved the problem. The
fix will be available on the CVS.
If this doesn't solve your problem, could you report it ?
Thanks.
Nicolas Vizerie

----- Original Message -----
From: "Robert Bjarnason" <address@hidden>
To: "Nicolas Vizerie" <address@hidden>
Sent: Tuesday, February 26, 2002 9:05 PM
Subject: Re[2]: [Nel] Enabling Water Pools in Client


> Hi Nicolas,
>
> NV> Well, for now, you have to create a water pool the way the object
viewer does,
> NV> since it isn't exposed by the user interface for now.
>
> I might be missing something in this process of creating
> the water pool the way the object viewer does it...
>
> NV> - Export the shapes and the instance groups.
>
> After making my pool look really good in Object Viewer
> I export the shapes and the instance group.
>
> NV> Then you load it in the client, the way you did, and it should work :
>
> Then I use this code to load the ig:
>
> UInstanceGroup  *waterIg =
UInstanceGroup::createInstanceGroup(std::string("9_AO.ig"));
> waterIg->addToScene(*Scene);
>
> WaterPoolManager = &NL3D::GetWaterPoolManager();
> NL3D::CWaterPoolManager::CWaterHeightMapBuild whmb;
> whmb.ID   = 0;
> <-cut whmb setup->
> WaterPoolManager->createWaterPool(whmb);
> nlinfo("Nr of waterpools %d nr.",WaterPoolManager->getNumPools());
> WaterPoolManager->setBlendFactor(dynamic_cast<IDriver*> (Driver), 0.1f);
>
> NV> If this doesn't work, you could also check wether the shapes are
found.
>
> The WaterShape is added to the scene I confirmed that
> with debug code.
>
> But this method in CWaterModel is never
> called: void CWaterModel::registerBasic()
>
> This leads me to belive that there is something that I'm
> missing in the setup of the Driver, can this be the case?
>
> Thanks,
> Robert
>
>
> _______________________________________________
> Nel mailing list
> address@hidden
> http://www.nevrax.org/mailman/listinfo.cgi/nel
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]