juliusctw
19-10-2008 04:08:35
hello
I am just wondering if anyone is working on a linux compiled version of hydrax
Xavyiy
19-10-2008 14:06:25
Hydrax 0.4 must compile under Linux, the only thing is that due to CG have some problems under OpenGL hydrax shaders should be modiffied(In order to fix cg bugs, with some tricks) to get them working correctly under CG/OGL->Linux.
Xavi
firecool
30-10-2008 12:02:47
Xavyiy
30-10-2008 17:39:11
Can you upload a little video of the problem? Only refraction is displaced with the camera or reflection too?
Xavi
firecool
30-10-2008 20:44:08
this is a little video ... (sorry for the bad quality)
as you can see, sometimes a part of skybox disapper.
-->
hydrax Video
juliusctw
31-10-2008 06:04:30
hello
Do you mind sharing your make file?
hey Xavyiy
would you consider adding the Makefile to the project if firecool is willing to share?
Xavyiy
01-11-2008 01:13:51
firecool
01-11-2008 10:46:10
juliusctw
02-11-2008 05:54:09
hey firecool
it still doesn't work for me, maybe its the service
firecool
06-11-2008 02:16:35
juliusctw
06-11-2008 10:57:44
Hello firecool
i compiled your program and ran the demo, everything appears to compile fine. Xavyiy, I recommend to incorporate this into your project, for me personally, the compile worked right off the bat. Here is a screen shot, is the island suppose to be this bright? I don't remember it being that bright in the window's version.
http://www.flickr.com/photos/9472687@N0 ... 5/sizes/o/
There is an error , when you go under the water, the reflection is flipped somehow.
http://www.flickr.com/photos/9472687@N0 ... 3/sizes/o/
Also, I am a little concerned regarding to the frame rate, If just the water itself causes the frame rate to drop down to 13, how am i suppose to add anything else, or is this demo just super expensive?
firecool
09-11-2008 16:16:15
hey,
i've tested hydrax demo on a GeForce 9500M and it work perfectly, there are no reflection/refraction displacement.
So it is an issue of my ATI mobility radeon x700 (maybe something due to Cg code??)
There is also another problem (on both ati and nvidia card): when i run the demo or when i change the skybox, (not always but often) it crash with this exception
An exception has occured: OGRE EXCEPTION(7:InternalErrorException): Index Buffer: Out of memory in GLHardwareIndexBuffer::lock at OgreGLHardwareIndexBuffer.cpp (line 122)
juliusctw have you something similar ?
Xavyiy
09-11-2008 23:01:28
Mmm you mean that under the Geforce 9500M Hydrax works perfectly under linux? or under win?
juliusctw
10-11-2008 04:00:13
no one else is having this problem of flipped reflection in linux?
hydrax cmake build file for the cmake users:
CMakelists.txt:
# sources
FILE(GLOB_RECURSE hydrax_src Hydrax/*.cpp)
# includes
include_directories (Hydrax)
include_directories (${YOUR_OGRE_DIR}/OgreMain/include)
# flags
add_definitions("-D_USRDLL -DHYDRAX_LIB")
# lib
add_library(hydrax SHARED ${hydrax_src})
#installation
install(TARGETS hydrax DESTINATION ${BIN_DIR})
daqula
10-06-2009 06:26:25
when I tried to build hydrax 0.4 with Ogre1.6.2(and 1.6.1). I got same errors in generating Hydraxdemo application step, like below:
CMakeFiles/HydraxDemo.dir/src/main.o: In function `Ogre::NedAllocPolicy::deallocateBytes(void*)':
main.cpp:(.text._ZN4Ogre14NedAllocPolicy15deallocateBytesEPv[Ogre::NedAllocPolicy::deallocateBytes(void*)]+0xd): undefined reference to `Ogre::NedAllocImpl::deallocBytes(void*)'
CMakeFiles/HydraxDemo.dir/src/main.o: In function `ExampleFrameListener::processUnbufferedKeyInput(Ogre::FrameEvent const&)':
main.cpp:(.text._ZN20ExampleFrameListener25processUnbufferedKeyInputERKN4Ogre10FrameEventE[ExampleFrameListener::processUnbufferedKeyInput(Ogre::FrameEvent const&)]+0x587): undefined reference to `Ogre::RenderTarget::writeContentsToFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/HydraxDemo.dir/src/main.o: In function `ExampleApplication::configure()':
main.cpp:(.text._ZN18ExampleApplication9configureEv[ExampleApplication::configure()]+0x63): undefined reference to `Ogre::Root::initialise(bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/HydraxDemo.dir/src/main.o: In function `Ogre::NedAllocPolicy::allocateBytes(unsigned int, char const*, int, char const*)':
main.cpp:(.text._ZN4Ogre14NedAllocPolicy13allocateBytesEjPKciS2_[Ogre::NedAllocPolicy::allocateBytes(unsigned int, char const*, int, char const*)]+0x22): undefined reference to `Ogre::NedAllocImpl::allocBytes(unsigned int, char const*, int, char const*)'
/home/daqula/3dui_waterworld/hydrax/Hydrax-v0.4-linux/Hydrax/libHydrax.so: undefined reference to `Ogre::ConfigFile::getSetting(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/home/daqula/3dui_waterworld/hydrax/Hydrax-v0.4-linux/Hydrax/libHydrax.so: undefined reference to `Ogre::CompositionPass::setInput(unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)'
collect2: ld returned 1 exit status
make[2]: *** [Demo/HydraxDemo] Error 1
make[1]: *** [Demo/CMakeFiles/HydraxDemo.dir/all] Error 2
make: *** [all] Error 2