You Are Here:

Community: Developer Discussion Boards

#1 Old streaming client + 3d rendering - 2008-05-05, 17:45

Join Date: Mar 2008
Posts: 25
sstoica
Offline
Registered User
Hello,

I am trying to make a WiFi client-server app in pys60 and I need some help with the threads part in SymbianOS.

main ideea of the app:

the client (runs on the phone) can:
communicate with the PC server +
render 3d objects (so far only basic objects read from a file).

the server can:
store a big 3d scene filled with objects
communicate with the pys60 client and send the objects back to the client

Both features (networking, 3D) work so far, but sepparate.

My problem is with the threads in symbianOS: i want to create a thread that from time to time sends the client position in the scene back to the server. If new objects come into view, the server will send back the new objects and they will get rendered.

So how can I periodicaly send updates to the server without stoping the rendering process?

main loop looks like this:
Code:
if __name__ == '__main__':
    
    try:
        new3d = lib3d.Render() #get a new render object

    except Exception,e:
        appuifw.note(u"Cannot start: %s" % (e))

    else:
        appuifw.app.title=u'lib3D+netlib'
        # create the canvas
        appuifw.app.body = new3d.canvas
        appuifw.app.exit_key_handler = new3d.set_exit
        new3d.initgl() #opengl es init 
        createMenuItems() #create the menu

        while running:
            new3d.run(objects) #draw a scene with the objects provided
            #HERE in paralel, from time to time i would like to update my position to the server. basicaly send new3d.position to the server
            e32.ao_sleep(0.001)

        new3d.close_canvas()      
        del new3d
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Nokia VPN Client on N95 and Video Streaming problems Wajahat General Discussion 0 2007-12-10 13:42
Test needed for a flash 3gp streaming client kaskado Streaming and Video 2 2007-04-18 20:58
Streaming EDGE clip in GPRS coverage zivs Streaming and Video 0 2006-08-22 18:22
Bluetooth client problem on games! wmchan78 Mobile Java Networking & Messaging & Security 6 2006-03-22 07:15
Nokia Mobile VPN Client marcyl Symbian Networking & Messaging 1 2003-12-01 15:47

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia