Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - EgonOlsen

Pages: 1 ... 782 783 [784] 785 786 ... 823
11746
Feedback / suggestion
« on: October 07, 2005, 09:37:40 am »
You get the id when adding the light to the World by using addLight() as a return value. Again: I agree that it would be better to handle lights as instances of their own, but just write yourself a Light-class that takes a World in the constructor and internally adds a new light to this world and holds the id. Manipulate the light by mapping the methods of your class to the corresponding ones in World. For example: Currently, there is no way to remove a light from the World, so just add a method disable() to your Light class and let it call World.setLightVisibility(myID, false). Got the idea?

Edit: rolz owned me...  :lol:

11747
Feedback / suggestion
« on: October 07, 2005, 07:32:39 am »
Quote from: "Melssj5"
Why wont you change that feature on jpct?
Because it will break all existing code and doesn't really gain you anything except for giving you the gut feeling that it's somehow "better" that way. One thing i really hate about non-commercial software (may it be open source or not) is when the API constantly changes without adding new functionality, i.e. when the only reason for a change is to make the developers of the API feel better.
But i may add such Wrapper as an option and put it into the util-package. I haven't done this until now, because nobody ever complained about it and because such a wrapper is drop dead simple to write by yourself if needed.

11748
German corner / Will nen Gästebuch oder spam Topic :-)
« on: October 06, 2005, 06:41:50 pm »
Quote from: "the unbeatable"
...vielleicht solltest du lieber bisserl Act of War üben, statt deine ganze HP ins Englische zu übersetzen ;-)
Bleibt zu klären, was auf lange Sicht erfolgversprechender ist...

11749
Feedback / Re: Lights
« on: October 05, 2005, 08:00:09 pm »
Quote from: "manumoi"
I suppose there is a way to redefine this limit but I wasn t able to find it.
How to do that?
Set Config.maxLights to a higher value before instantiating a World.

11750
Feedback / suggestion
« on: October 05, 2005, 12:27:44 pm »
Quote from: "Melssj 5"
maybe the lights should have its own methods to do their stuff, I dont know.
Yes, i agree. The current implementation for the lights turned out to be rather unintuitive. The basic idea was to keep Lights as lightweight as possible but that isn't really an issue when looking back at them now. Anyway, i won't change this in jPCT. But it's very easy to write your own wrapper class for the lights. That's what i did in Paradroidz too. All you have to do is to store the World and a light's id in each instance of this "MyLights"-class and map methods like MyLights.setPosition() to the corresponding World-methods. Not an ideal solution but at least more OOish as the current implementation.

11751
Projects / Dissapointed
« on: September 27, 2005, 05:28:56 pm »
Glad to see you back in business... :wink: Your planned approach sounds reasonable to me. Just make sure to keep things as complex as needed but as simple as possible. Things will grow in complexity anyway...(for example, Paradroidz proof of concept version started with 4 classes, now i'm at 163 and counting...).

11752
Projects / Re: 25
« on: September 27, 2005, 05:21:03 pm »
Quote from: "rolz"
Happy birthday to me  :!:

;)
Well...then...: HAPPY BIRTHDAY TO YOU! :mrgreen:

11753
Feedback / The future of jPCT
« on: September 24, 2005, 10:57:06 am »
Quote from: "Anonymous"
it would be nice though if you could create an applet using the software-based renderer, but have an optional download to plugin a hardware-based renderer, so the the same software runs in either way.
I don't quite understand...you can already do that!

11754
Projects / Re: Flickering with transparent objects
« on: September 22, 2005, 05:51:17 pm »
Quote from: "rolz"
- Transparent objets were flickering (grass, trees) , like on one frame object A was in front of object B, and on the other - object B was in front of A.

It appears that it is possible to control which object had to be displayed in the front by manually setting Object3d.setSortOffset() for such objects.
Basically, the inconsistent overlapping is impossible to avoid when using painters algorithm based on z-sorting...and that's what jPCT has to do to ensure an (almost) correct order. setSortOffset() may help if used right. But for overlapping trees, it will get quite difficult, i think. The method is in because i needed it for Paradroidz to avoid an overlapping problem between the fog of war and the energy pods.
I don't think that the sorting flaws are a big problem in Technopolies. I hardly ever notice them and i usually notice every subtle rendering artifact... :wink:

11755
Projects / Dissapointed
« on: September 20, 2005, 05:37:10 pm »
Sorry to hear that :( Personally, i don't spend days or even weeks drawing UML diagrams and designing stuff to the death. I usually know the goal that i want to achieve and i have a rough idea of how to do it before i start coding.  When i'm thinking too much about design, i usually complicate things more than needed.  For example, Paradroidz first design was overcomplicated. It made sense on paper and it would have done so even in code, if the code would have been used in the way it was planned to...but it wasn't.
Designing too much leads to too much "what if"-thinking IMHO: "What if i want to do this or that in the future or what if my game objects should start cleaning the kitchen or cooking some coffee one day...i should take care of that too...or maybe i want to render them on a line printer one day, so i should introduce another rendering abstraction layer...". That's BS. I like the part of the "Extreme Programming"-philosophy where it says: "Code what's needed, not more. Refactor if needed." That's basically what i'm doing with Paradroidz. That's NOT what i'm doing with jPCT. jPCT's design is years old. It should be refactored for some parts and i would do that, if i were the only person using it. But i'm not and i really don't want to break other people's code (because i HATE it, when this happens to me) justto  make me feel better. In the end, it doesn't matter at all.
However, what works for me doesn't have to work for everybody else and these things lead to very emotional discussions (even more than the great question: "Where to put the brackets?"... :wink: ) most of the time. Do what works for you. If you do and if you finish at least something, you already did a lot better than people who are just talking about things...
About the art department: I'm not very good at art, i.e. drawing textures, making models...i could do better than i'm currently doing with Paradroidz, but i don't want to spend the time needed. A skilled artist would be multiple times faster than me (and with better results) That's why i'm currently looking for an artist to improve the look of the models at least. And to make sure that he delivers, i'll pay him for his work. Not much of course, because Paradroidz is freeware, but anyway...
What else can i say...don't give up just because it isn't fun all the time. There are soooo many abandoned projects on the net...too many if you ask me. The people who are actually getting things done are very very few... :cry:

11756
Projects / Technopolies
« on: September 19, 2005, 10:48:09 pm »
Tested the new version on a Linux box (Debian) and it worked just fine. I got some exceptions, but that may be the case in Windows too... :?:

Code: [Select]
java.lang.ArrayIndexOutOfBoundsException: 1517
        at aS.a_(Unknown Source)
        at bk.b(Unknown Source)
        at bk.d(Unknown Source)
        at techno.client.world3d.Client3D.run(Unknown Source)
        at techno.client.world3d.Client3D.main(Unknown Source)
java.lang.NullPointerException
        at O.a_(Unknown Source)
        at bk.b(Unknown Source)
        at bk.d(Unknown Source)
        at techno.client.world3d.Client3D.run(Unknown Source)
        at techno.client.world3d.Client3D.main(Unknown Source)


It ran quite slow, but that's not much surprising because the system is a Pentium II 400Mhz with a TNT2-32MB graphics card. But it was still playable...

11757
Support / Some .3DS Files are not shown
« on: September 13, 2005, 07:14:51 am »
I've moved this thread to support...anyway: The loader loads polygonal objects only (this is stated somewhere...if not in the javadocs, it may be in the "manual"). That is why straight lines don't show for example. There is simply no matching primitive in jPCT to show them. I don't know about the bevel as i don't know how this works in 3DS Max and what the exporter does with it.
You may want to try to export the model into another format (good old ASC for example, which most likely doesn't support bevel so that it has to be converted to a polygonal representation), reimport it into Max and save it as a 3DS again. Maybe that helps.

BTW: If you are still using the version from Feb. 2004, you should really upgrade. It may not fix the 3DS problem, but it fixes a lot of other stuff...

11758
Support / Videos
« on: September 11, 2005, 11:36:31 pm »

11759
Support / Getting an object from a World
« on: September 11, 2005, 02:31:02 am »
It was just an example. tempObject3D.setName(nombresMapas ); is better?

11760
Support / Getting an object from a World
« on: September 11, 2005, 02:06:23 am »
Quote from: "Melssj5"

Any idea about how to solve my problem?


tempObject3D.setName("Seleccionador.3DS");   :?:

Pages: 1 ... 782 783 [784] 785 786 ... 823