This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Windows Mobile 3d rending


Windows Mobile 3d rending

Postby dgoogd » Jul 5, 2010 @ 7:05pm

Hello,

I use Visual Studio 2008 + Windows Mobile 6 SDK + Edgelib SDK 3.986 to develop an application for Windows Mobile 6.1/6.5 and Samsung GT-B7300 for testing device. I stuck with 3d rending problem.

For example, I have 1 plane surface and 2 boxes on top of the plane surface. While the camera is outside of the plane surface, all objects render correctly. While the camera is on the plane surface, the polygons of the plane is disordered and is not below the camera, but the 2 boxes render properly. While the camera is between 2 boxes, all objects' polygons are rendering disorder and confuse.

I tried to combine with PowerVR SDK to solve above problem, since my Samsung B7300 device is able to run the samples provided by PowerVR SDK 1.0, but not success for running the samples from PowerVR SDK 1.1/2.0 on my device, so I decided to use PowerVR SDK for OpenGL ES 1.0 (Common Lite).

Code: Select all









10 
11 
12 
13 
#define EGL_USEGL
#define EGL_USEGLES

//Include Edge
#include "edgemain.h"

//Link the Edge static library
#pragma comment(lib, "edge.lib")

#include "GLES\\gl.h"
#include "GLES\\egl.h"

#pragma comment(lib, "plugin1-0.lib")
13 lines; 7 keywds; 0 nums; 6 ops; 5 strs; 2 coms    Syntactic Coloring v0.4 - Dan East  


After I imported the PowerVR library to my project and defined EGL_USEGL and EGL_USEGLES as above, the project is successfully to compile. However, while run the program in the device. I've got an error message: "Couldn't open the display device."

Code: Select all









10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
#define EGL_POWERVR
#define EGL_USEGL
#define EGL_USEGLES

ERESULT ClassMain::OnDisplayConfig(EDISPLAYCONFIG *config)
{
    ClassEStd::StrCpy(config->caption, "View 3D");
    config->icon            = IDI_MAIN;           //Application icon
    config->width           = 240;                //Desktop PC: Custom display width
    config->height          = 400;                //Desktop PC: Custom display height
    #if defined(DEVICE_DESKTOP) || defined(DEVICE_SERIES80) || defined(DEVICE_SERIES90) || defined(DEVICE_GP2X)
        config->orientation = DOR_NONE;           //No display rotation for Desktop, Series 80, Series 90 and GP2X devices
    #else
        config->orientation = DOR_90DEG;          //Other devices: Rotate the display 90 degrees
    #endif
    config->engineconsole   = false;              //Desktop PC: Disable the edge console
    #if defined(DESKTOP) && !defined(EGL_PC)
        config->fullscreen      = false;          //Desktop PC: windowed application for OpenGL ES emulator library
    #else
        config->fullscreen      = false;           //Fullscreen application for other cases
    #endif
    config->fullscreenmouse = true;               //Desktop PC: Enable the mouse cursor for fullscreen applications
    return(E_OK);
}
24 lines; 20 keywds; 2 nums; 75 ops; 1 strs; 9 coms    Syntactic Coloring v0.4 - Dan East  


I've tried adding EGL_POWERVR definition, disable fullscreen option and change the videowidth/videoheight of the config. The error message keeps showing.

How can I solve the above problems?
Do Edgelib support PowerVR SDk 1.0? If not, how do I upgrade my device to support PowerVR SDK 1.1 or above?

Thanks a lot.
dgoogd
pm Member
 
Posts: 1
Joined: Jul 3, 2010 @ 8:52am


Re: Windows Mobile 3d rending

Postby edge » Jul 8, 2010 @ 9:42am

As discussed by email:

The conclusion was that you most likely would need a change in one of our helper libraries (plugingl.lib) which would enable you to load OpenGL dynamically from a DLL.

I will have to get back to you about this.

Wouter
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron