Time |
S |
Nick |
Message |
05:05 |
|
|
mr_lou joined ##friendlyjava |
08:20 |
|
* mr_lou |
is trying to grasp 3D - oldskool style |
08:20 |
|
mr_lou |
Trying to rotate a 2D image around X Z axis, but am just getting a "stretch" effect. |
08:20 |
|
mr_lou |
https://pastebin.com/qhhBVXT5 |
08:21 |
|
mr_lou |
Looking at the Matrix at this page: http://blog.rogach.org/2015/08/how-to-create-your-own-simple-3d-render.html |
08:26 |
|
|
kirua joined ##friendlyjava |
11:42 |
|
pdurbin |
sounds fun |
12:37 |
|
mr_lou |
A little bit. :-> |
12:37 |
|
mr_lou |
Progress is slow though. |
13:04 |
|
pdurbin |
Will your code be open source? |
14:54 |
|
mr_lou |
:-P |
14:58 |
|
pdurbin |
just curious :) |
15:04 |
|
mr_lou |
Actually, I'm using Java to create a seriest of images that I then assemble to a video with ffmpeg. The end result is for LED digital signs on football fields. |
15:35 |
|
pdurbin |
neat! |
16:10 |
|
aditsu |
I wrote a 3d editor when I was in high school :p |
16:11 |
|
aditsu |
wireframe only |
16:23 |
|
mr_lou |
:) |
16:24 |
|
mr_lou |
I can't get my code to rotate my image properly. It kinda rotates, but then gets spasms. :-> |
17:45 |
|
aditsu |
mr_lou: wanna share a full program? |
17:49 |
|
mr_lou |
Um... well, don't think it'll be that interesting to you. It'll be very specific for the company I work for. |
17:50 |
|
aditsu |
I mean the code that rotates the image, but self-contained, so I can try to help you fix it |
17:50 |
|
mr_lou |
Ah |
17:50 |
|
mr_lou |
Sure |
17:50 |
|
mr_lou |
Nothing specific for the company in there yet. |
17:51 |
|
* aditsu |
hoping it's not awt.. |
17:53 |
|
mr_lou |
aditsu, Here it is: https://pastebin.com/iCtGsz9w |
17:53 |
|
mr_lou |
Rotation code at the very bottom |
17:54 |
|
aditsu |
heh, British spelling :p |
17:54 |
|
mr_lou |
It's just a surface that I try to rotate around Z and Y axis. That's not quite what happens. |
17:54 |
|
mr_lou |
Yea, I'm european. ;-) |
17:54 |
|
aditsu |
me too, but I like simplicity |
17:55 |
|
mr_lou |
Well I can't help it. It was what school taught us. |
17:55 |
|
mr_lou |
Also like... cosy vs cozy. |
17:55 |
|
mr_lou |
I try to type according to who I'm writing with though. |
17:59 |
|
aditsu |
https://www.youtube.com/watch?v=dz4Ps55Rx40 |
18:00 |
|
mr_lou |
Eddie Izzard rules. |
18:00 |
|
mr_lou |
Seen his shows many times. :-) |
18:00 |
|
mr_lou |
Remember this bit very well. :-) |
18:02 |
|
* mr_lou |
sadly gotta go lie down. Bad back all day. |
18:02 |
|
mr_lou |
Will check the channel every now and then. |
18:02 |
|
aditsu |
sure, take care |
18:04 |
|
mr_lou |
Aaaaaaah......... |
18:04 |
|
* mr_lou |
is lying down now |
18:05 |
|
mr_lou |
Computer connected to two screens. One I can view from here too. :-) |
18:05 |
|
mr_lou |
Wireless keyboard. |
18:06 |
|
aditsu |
finally ran your code, wow, such a neat effect :) |
18:07 |
|
mr_lou |
:-) |
18:07 |
|
mr_lou |
Can you spot what's wrong with my matrix? |
18:15 |
|
aditsu |
do you want to just rotate it around the x axis? |
18:16 |
|
aditsu |
and show it with a perspective projection |
18:27 |
|
mr_lou |
around x axis with perspective, so that it looks like it rotates in 3d |
19:02 |
|
aditsu |
I'm going through your program little by little, and also busy with some other things, I'll probably get back to you a bit later |
19:06 |
|
aditsu |
mr_lou: I noticed that half of line 125 is redundant |
19:26 |
|
mr_lou |
mkay |
19:26 |
|
mr_lou |
If I don't answer all of the sudden, I've falled asleep. ;-) |
23:10 |
|
aditsu |
mr_lou: still there? |
23:19 |
|
aditsu |
mr_lou: when you're back, check this: http://dpaste.com/203GM77 |
23:19 |
|
aditsu |
you can try different values for d1 and d2 |