Crystal Space
Welcome, Guest. Please login or register.
November 19, 2017, 06:46:36 pm

Login with username, password and session length
Search:     Advanced search
9081 Posts in 2051 Topics by 80458 Members
Latest Member: Zzpthgqej96
* Home Help Search Login Register
+  Crystal Space
|-+  Associate Projects
| |-+  CEL Discussion
| | |-+  How to draw/show an Entity?
« previous next »
Pages: [1] Print
Author Topic: How to draw/show an Entity?  (Read 4084 times)
Full Member
Posts: 101

View Profile
« on: October 12, 2005, 04:15:54 pm »

I have a mapfile loaded as an entity and will create a player later. How can I show/draw these entities then?
Do I only need to attach a camera pc to the player and that does all that stuff automatically and I don't have to write code if something like the point of view changes?
I looked into the celtutorial p5, MainApp::CreatePlayer() and hopefully understood that right *g*

Gentoo Linux ~x86, kernel 2.6.11-cko9 smp, gcc 3.4.4-r1, binutils 2.16.1, glibc 2.3.5 NPTL
CS+CEL Pseudo Stable 2005.09.03
Full Member
Posts: 122

View Profile Email
« Reply #1 on: October 13, 2005, 01:04:26 am »

Well, if you create the entity like this (Look into the CreateEntity function in iCelPlLayer):

        playerEntity = pl->CreateEntity("player", bl,

And the entity has the pcmesh property class, it can be displayed, and will be by default I believe.  There are methods to hide and show a mesh, so you should look into that if you wish.  Really, getting an object to be displayed is trivial.
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.137 seconds with 15 queries.