|
Re: What are you working on?
[Re: sivan]
#418628
02/27/13 16:51
02/27/13 16:51
|
Joined: Nov 2011
Posts: 274 de
lemming
Member
|
Member
Joined: Nov 2011
Posts: 274
de
|
Nothing eye catching or awesome, but it makes working with TEXT a bit easier: COLOURFUL TEXT! This is how you create it:
CLTEXT* mytext = cltext_create(_str("[clff0000]Guard: [clffffff]I used to be an [cl2233ff]adventurer [clffffff]like you. Then I took an [cl22ff33]arrow [clffffff]in the knee."), font_create("Arial#18b"), 20, 320, 0);
cltext_show(mytext, 80, 360, 1);
Not finished for now, I miss automatic word wrapping.
|
|
|
Re: What are you working on?
[Re: lemming]
#418632
02/27/13 17:37
02/27/13 17:37
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
O.o... you forgot the "But"! It's "But then I took ..."
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: What are you working on?
[Re: lemming]
#418637
02/27/13 18:48
02/27/13 18:48
|
Joined: Apr 2005
Posts: 4,506 Germany
fogman
Expert
|
Expert
Joined: Apr 2005
Posts: 4,506
Germany
|
Whenever I see our good old guard I want to make a "Monty Python and the Holy Grail" game.
no science involved
|
|
|
Re: What are you working on?
[Re: rayp]
#418645
02/27/13 19:55
02/27/13 19:55
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
@oliver2s Will you share your merging-code evantually? Sure it's not THAT hard to do ( - for people who have some experience with the direct use of vertex- and indexbuffer, etc. - ) but if someone has already written a script like this ( and if it's working ) it would be really nice to have it. And It would save some time for those who need it.
POTATO-MAN saves the day! - Random
|
|
|
Re: What are you working on?
[Re: Kartoffel]
#418650
02/27/13 20:20
02/27/13 20:20
|
Joined: Aug 2002
Posts: 3,258 Mainz
oliver2s
Expert
|
Expert
Joined: Aug 2002
Posts: 3,258
Mainz
|
@Kartoffel: the code is based on the script of EvilSOB: http://www.opserver.de/ubb7/ubbthreads.p...true#Post404092 His script merges two (different) entities. I modified the script to clone a single entity several times and adjust its vertex positions. You can merge as many meshes as you want at the same time with the directX instruction "D3DXConcatenateMeshes" (see google for more information).
|
|
|
Re: What are you working on?
[Re: sivan]
#418664
02/27/13 22:10
02/27/13 22:10
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
can you also save it as merged or is it necessary to do it again in the game/application on loading the level? It's possible but doing it when loading the level usually is pretty fast.
POTATO-MAN saves the day! - Random
|
|
|
Re: What are you working on?
[Re: Kartoffel]
#418668
02/27/13 22:37
02/27/13 22:37
|
Joined: Aug 2002
Posts: 3,258 Mainz
oliver2s
Expert
|
Expert
Joined: Aug 2002
Posts: 3,258
Mainz
|
can you also save it as merged or is it necessary to do it again in the game/application on loading the level? It's possible but doing it when loading the level usually is pretty fast. That's right!
|
|
|
|