About Z-Buffer and other questions
Hi, Edge. We are currently evaluating EdgeLib in order to develop a new game for Symbian phones and pocket PC devices. There are some questions we have:
-We have been making some test with openGL and it seems to be pretty slow compared to the performance obtained using edge internal render. Is that normal? Then why is openglES supported? I guess it is only for those platforms with hardware acelaration, but I'm not sure.
-Edge internal lib doesn't have support for Z-buffer neither for perspective correction. Are you plannig to add it in the future? In case not, is it because performance would be affected?
-We have tried to compile for Symbian s60 1st edition but haven't succes yet. It has been impossible for us to find "Series 60 first edition supporting CodeWarrior". Can we use "1st Edition, FP1, WINS", wich is the only one availabe in forum nokia, instead?
Hi Zalo,
The slowness of software OpenGL (ES) seem to be mostly caused by the Z-Buffer. When testing on a Nokia E60 with only clearing the Z-Buffer and screen buffer, we get a very low amount of frames per second. It's best to use OpenGL for hardware accelerated devices.
The internal renderer doesn't use a Z-Buffer which explains the better performance. However, there can be problems with rendering and sorting different objects. We plan to implement a more advanced 3D engine in a future EDGELIB release which handles these issues better. When the time comes, a Z-Buffer may be implemented but it hasn't got priority at the moment.
When targetting Series 60 first edition, you can also download the WINS version. When building with the EDGELIB builder, you need to edit the platform ini file and remove the devices command. For the commandline batch files you also need to remove the devices command.
Hi, again. And thanks for the fast answer.
Basically this is the problem that I have triying to compile for Symbian:
- Code:
nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\DEVELOP\EDGE\EDGE\SAMPLES\HELLOWORLD\WORKSPAC
E_S60_E1ST\EXPORT.make" EXPORT VERBOSE=-s
Nothing to do
nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\DEVELOP\EDGE\EDGE\SAMPLES\HELLOWORLD\WORKSPAC
E_S60_E1ST\ARMI.make" MAKEFILE VERBOSE=-s
perl -S makmake.pl -D \DEVELOP\EDGE\EDGE\SAMPLES\HELLOWORLD\WORKSPACE_S60_E1ST\HELLOWORLD AR
MI
nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\DEVELOP\EDGE\EDGE\SAMPLES\HELLOWORLD\WORKSPAC
E_S60_E1ST\ARMI.make" LIBRARY VERBOSE=-s
nmake -nologo -s -f "\Symbian\6.1\Series60\EPOC32\BUILD\DEVELOP\EDGE\EDGE\SAMPLES\HELLOWORL
D\WORKSPACE_S60_E1ST\HELLOWORLD\ARMI\HELLOWORLD.ARMI" LIBRARY
nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\DEVELOP\EDGE\EDGE\SAMPLES\HELLOWORLD\WORKSPAC
E_S60_E1ST\ARMI.make" RESOURCE CFG=UREL VERBOSE=-s
nmake -nologo -s -f "\Symbian\6.1\Series60\EPOC32\BUILD\DEVELOP\EDGE\EDGE\SAMPLES\HELLOWORL
D\WORKSPACE_S60_E1ST\HELLOWORLD\ARMI\HELLOWORLD.ARMI" RESOURCEUREL
nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\DEVELOP\EDGE\EDGE\SAMPLES\HELLOWORLD\WORKSPAC
E_S60_E1ST\ARMI.make" TARGET CFG=UREL VERBOSE=-s
nmake -nologo -s -f "\Symbian\6.1\Series60\EPOC32\BUILD\DEVELOP\EDGE\EDGE\SAMPLES\HELLOWORL
D\WORKSPACE_S60_E1ST\HELLOWORLD\ARMI\HELLOWORLD.ARMI" UREL
..\..\..\..\..\..\Symbian\6.1\Series60\EPOC32\RELEASE\ARMI\UREL\EDGE.LIB(../../../../SYMBIAN/6.1/SER
IES60/EPOC32/BUILD/_BUILD/EDGE/_SOURCE/PRJ_SYMBIAN-S60_E1ST/EDGE/ARMI/UREL/CFILE.o)(.text+0x82c):Cfi
le.cpp: undefined reference to `Dll::FileName(TBuf<256> &)'
..\..\..\..\..\..\Symbian\6.1\Series60\EPOC32\RELEASE\ARMI\UREL\EDGE.LIB(../../../../SYMBIAN/6.1/SER
IES60/EPOC32/BUILD/_BUILD/EDGE/_SOURCE/PRJ_SYMBIAN-S60_E1ST/EDGE/ARMI/UREL/CFILE.o)(.text+0x82c):Cfi
le.cpp: relocation truncated to fit: ARM_26 Dll::FileName(TBuf<256> &)
NMAKE : fatal error U1077: 'C:\Symbian\6.1\Shared\EPOC32\gcc\bin\ld.EXE' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Archivos de programa\Microsoft Visual Studio 8\VC\bin\nmake.EXE"' :
return code '0x2'
Stop.
nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\DEVELOP\EDGE\EDGE\SAMPLES\HELLOWORLD\WORKSPAC
E_S60_E1ST\ARMI.make" FINAL CFG=UREL VERBOSE=-s
any ideas?
Hi Zalo,
It seems that the linker can't find the 'Dll::FileName' function in one of its libraries. Maybe it's missing one of the Symbian libraries in your project?
I also suggest building with the EDGELIB builder to see if you get the same error. It also makes it easier to see where the error comes from without having to look through the perl script output.
Thank you. It Finally worked.
There were some missing librarys on the mmp project of HelloWorld I downloaded from your tutorials.
I added
LIBRARY edll.lib
LIBRARY edllstub.lib
LIBRARY egcc.lib
just before
LIBRARY euser.lib
and that's all.
Now I am trying to make it work on the emulator but it doesn't work. Is there any libraries for Wins emulator? I have tried the libraries in symbian-s60_e1st but I guess they are just for the device and not for the emu
Hi Zalo,
EDGELIB doesn't have emulator libraries for Symbian versions below 9.1. We recommend using native desktop builds for quick development, and use device builds for device tests.
Now I am using edgebuilder.
I can't compile for Windows desktop. If I generate a project for visual studio 2005 or Visual C 6.0 everything goes ok, but if I tried to compile with edgebuilder I get the next message
C:\Develop\Edge\Edge\samples\Blastar\workspace_eide_176x208\resource.rc(4) : fatal error RC1015: cannot open include file 'afxres.h'.
This happens with all projects
Hi Zalo,
We're aware of this problem (which only seems to happen with specific versions of some compilers) and will be fixed for the next release. In the meantime, use the EDGELIB builder for device projects only.
Hi, Edge.
I am having problems loading meshes in s60 1st edition. I have testing it but it doesn't work. I am loading ms3d files an all of them failed in the device.
I have also tried the sample Animate3D and it doesn't work either.
Same examples are perfectly working in s60 3rd edition, pockect PC and PC
Hi Zalo,
It seems that these errors are caused by the small stack used by older Symbian devices. When loading these models, do you get an error or does it crash with a Symbian panic?
Also, do .3ds files have the same problem?
The message said
App. closed !
animate3d
I have loaded 3ds models and it worked, but we cannot load animations this way
In fact, I can't load any *.ms3d.
The last thing I have done is exporting a simple cube an the same error happens. I guess that ms3d loader doesn't work in s60 1st edition
Hi Zalo,
We've fixed the Milkshape 3D loader for EDGELIB 3.30 which will be released soon. The problem happened, because the S60 device ran out of stack space.
Thank you for your fast answers
Hi, Edge
I have just installed the new version (3.30) and everything is working ok. The application is running in my n-gage and edgebuild now can compile for desktop.
Thank you.