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 - raft

Pages: 1 ... 122 123 [124] 125 126 ... 133
1846
Support / Transparent Backbuffers
« on: January 25, 2007, 04:47:09 pm »
Quote from: "EgonOlsen"
Try this: http://www.jpct.net/download/beta/jpctapi.zip
It has a new switch in Config called useFramebufferWithAlpha. If you set it to true before creating your FrameBuffer, the framebuffer should support an alpha value (you'll get a console message about this too). Rendered (and blitted) parts automatically get a 255, the rest depends on how you clear the buffer. Does this help?


as far as i remember i once requested this feature for karga's avatar panel. i'm glad it's now implemented

old transparency functionality with new alpha frame buffer. this way performs better and more important relaxes the restriction on avatar texture colors



Code: [Select]
r a f t

1847
Projects / aptal karga (foolish crow)
« on: January 17, 2007, 04:16:03 pm »
as there is an another bug report related to proxy problem, my request isnt accepted. although i couldnt find it, it's nice to see someone has previosly reported it

Code: [Select]
r a f t

1848
Projects / aptal karga (foolish crow)
« on: January 15, 2007, 12:28:14 am »
i've submitted a bug report. the automated reponse says it may take up to 3 weeks before it is reviewed and processed. we'll see

thx for your help egon, i really appreciate it ;)

Code: [Select]
r a f t

1849
Projects / aptal karga (foolish crow)
« on: January 14, 2007, 08:41:13 pm »
oops, you're right, same happens at my firefox too, provided with proxy settings are read at least once by web start when firefox is set up to use a proxy. after that even i disable the proxy, web start continues to use that proxy

edit: i can submit a bug report with this much information. thx ;)

Code: [Select]
r a f t

1850
Projects / aptal karga (foolish crow)
« on: January 14, 2007, 08:06:59 pm »
so the output of test program differs for web start 5 and 6. possibly java 5's output is something like, meaning direct connection:

Code: [Select]
selector: com.sun.deploy.net.proxy.DeployProxySelector@1592174
----
1 proxies for socket://www.aptalkarga.com:9998
DIRECT: DIRECT: class java.net.Proxy, address: null


if this is the case, we should submit a bug report to sun. i can do that but you have more information about the enviroment

my web start 6 uses correct settings from within both firefox 2.0 and internet explorer 7.0

1851
Projects / aptal karga (foolish crow)
« on: January 14, 2007, 07:38:22 pm »
i guess you're talking about that java5 web start 6 issue :
Quote from: "Egon"
Maybe the problem comes from the fact that even when running it with 1.5, the javaws is the one from 1.6


you can force web start 5 from command line:
Code: [Select]
<java5 folder>/jre/bin/javaws.exe <jnlp file>

can u please run the test application again with java 5

1852
Projects / aptal karga (foolish crow)
« on: January 14, 2007, 06:38:36 pm »
all my ideas about java bug were depending on the fact that karga runs with java 5 but not with 6. if that's not the case then certainly there's a problem on that machine

as direct connection works on that machine you can workaround the problem by disabling proxy usage, that is: on web start configuration panel, in general tab, in network seettings dialog, select direct connection option

hope that will solve -at least workaround- the problem
Code: [Select]
r a f t

1853
Projects / aptal karga (foolish crow)
« on: January 14, 2007, 05:26:54 pm »
oops :oops: i've corrected the jnlp file. so can u please run it with java 5 so we can compare the results ?

thx
Code: [Select]
r a f t

1854
Projects / aptal karga (foolish crow)
« on: January 12, 2007, 11:29:53 pm »
after some digging and hunting that seems to be a proxy related java bug but i'm not sure exactly what it is

if some of you has the same problem with java 6, can you please run the following application with both java 5 and 6 and post the result here or pm me. i hope this may clarify things

http://www.aptalkarga.com/jws/socks.jnlp

btw, it's a good thing that sun does not update get java page with initial release of every major version. i hope this connection issue will be solved till get java page is updated ;)

Code: [Select]
r a f t

1855
Projects / aptal karga (foolish crow)
« on: January 01, 2007, 08:36:24 pm »
so, it does work on your own machine but not on your girlfriends' one. is it a windows xp ?

can u please try to login using the following link:
http://www.aptalkarga.com/jws/karga_window_logall.jnlp

it logs lots of data to console. i'm interested in the two lines that are printed just after clicking the login button, like below:

Code: [Select]
FINE : create rmi socket www.aptalkarga.com:9998 [Rmi.java, raft.karga.net.Rmi$ClientSocketFactory:createSocket 23] [AWT-EventQueue-0]
FINE : create rmi socket 72.9.254.10:9998 [Rmi.java, raft.karga.net.Rmi$ClientSocketFactory:createSocket 23] [AWT-EventQueue-0]


i really dont know what may cause this but wonder if same information is passed to my rmi socket factories

Code: [Select]
r a f t

1856
Projects / aptal karga (foolish crow)
« on: January 01, 2007, 07:28:06 pm »
ehm, i really dont know what's going on :?

it does work on my windows xp and fedora 4. there's one difference though, in untrusted mode (windowed) on windows, javaws displays a warning about connections to cave (localhost). it goes on to connect if user presses cancel :roll:

have you modified any configuration files ? maybe re-installing java6 may help.

on the good side, fullscreen exlusive mode is now supported on my fedora 4

Code: [Select]
r a f t

1857
News / Java6
« on: December 26, 2006, 06:09:49 pm »
yeah, karga also performs almost 30% better, i'm more than happy with it ;)
hope sun will update getjava page soon

Code: [Select]
r a f t

1858
Feedback / Open source
« on: December 16, 2006, 05:17:34 am »
Egon,

i understand and appreciate all of the reasons that you dont make jPCT an open source project. however i guess it will be quite nice and beneficial for almost all if you give the source code without making jPCT an open source project.

that case will be free of possible problems that you concern about an open source project. and it will be effectively a guide, a reference point and a tutorial. afterall jPCT is the best 3d engine for java regarding its capabilities, small footprint and 1.1 compliance (IMHO)

sure, you may have been worried about some <bad> guys who may modify, rename, publish and maybe resell your code and steal your credits for your master piece. but isnt that already possible ? those <bad> guys can still decompile and serve your code in a different package, arent they ? you dont use any guards like obfuscation etc..

so in short, if you dont expect any commercial benefits from jPCT you may seriously think of sharing the source code without making jPCT an open source project.

that's just what i think
Code: [Select]
r a f t

1859
Support / Adding clothing, weapons, shields to 3d model.
« on: December 12, 2006, 11:38:17 pm »
you're all welcome ;)

i thought of publishing that part of code several times but it depends other parts of karga. maybe later if i have them somewhat organized

Code: [Select]
r a f t

1860
Support / Adding clothing, weapons, shields to 3d model.
« on: December 12, 2006, 10:46:42 pm »
this is from a private message, i'm posting it here hoping it may be handy ;)

i originally store each key frame on a seperate 3ds file and each animation sequence in a different folder.

say you have 2 animations: walk and jump. create them in a 3d editor like 3d max, and store necessary keyframes in seperate 3ds files. decide how many keyframes you will use and select them. remember all jpct can do is to interpolate between keyframes. so for walk you need at least these key frames: stand, right foot up, right down and left up, left down and right up, stand again. the file structure will be like:

Code: [Select]
character/default.3ds
character/walk/frame0.3ds
character/walk/frame1.3ds
character/walk/frame2.3ds
..
character/jump/frame0.3ds
..


then your code to load this animation will be like:

Code: [Select]
Object3D character = loadDefault3ds();

Animation animation = new Animation(<total number of frames>);
int walkSeq = animation.createSubSequence("walk");
for frames in walk folder {
    Object3D o = loadObjectFromFolder(..);
    animation.addKeyFrame(o.getMesh());
}
// do same for jump

character.setAnimationSequence(animation);


for this to work vertex optimization should be disabled or else jpct will weld close vertices into a single one and which in turn will break animation sequence: all meshes in an animation sequence should have same number of vertices

Code: [Select]
Loader.setVertexOptimization(false);


after these you can walk your character around by moving it and animate it at the same time by using

Code: [Select]
character.translate(Vector)
character.animate(index, walkSeq)

you should calculate index so that walk animation should look continuos.

-- o --

for cloting and weapons as i said before there are 2 distinct methods, texture based and mesh based.

for texture based, simply change texture of your character. i dynamically create cloth texture combinations in karga but that is only an addition. you can just use a couple of textures which were prepared offline

for mesh based, say your character has a weapon in his hand. you should put it into hand of your character in 3dmax and animate it with your character and save exactly same key frames. so you will have a directory structure like:

Code: [Select]
weapon/default.3ds
weapon/walk/frame0.3ds
weapon/walk/frame1.3ds
..
weapon/jump/frame0.3ds
..


load it the same way as your character and add it as a child:
Code: [Select]
character.addChild(weapon);

then, when you animate your character you should animate weapon too. old code now becomes:

Code: [Select]
character.translate(Vector);
character.animate(index, walkSeq);
weapon.animate(index, walkSeq);


an important point is, you shouldnt move your weapon as it will move with your character since it's a child of it. when you dont need a weapon just set it unvisible. that will succesfully do the trick

hope this helps ;)
Code: [Select]
r a f t

Pages: 1 ... 122 123 [124] 125 126 ... 133