« first day (1541 days earlier)   

12:15 AM
Maxiomo!!!!!!!!!!!!!!
Maximo!!*
Maximo is the BEAST dancing and eating fools on his dinner table.
 
need help urgently on some 3d rotation matter, anyone keen to help? :)
 
@MickLH http://www.turbosquid.com/
the free stuff here is *mostly* shit, but you might get lucky.
a lot of the paid stuff is really good though
@donysukardi I'll be semi-bored for the next couple hours. what you got?
 
im trying to place a 3d object relative to existing mesh. however, i couldn't seem to get the rotation right
var quaternion = new THREE.Quaternion().setFromUnitVectors( (new THREE.Vector3( x1, y1, z1 )), (new THREE.Vector3( x2, y2, z2 )));
quaternion.normalize();
i'm using quaternion based on the two vectors, but it seems to be giving me a perpendicular angle to the one that i'm expecting
 
12:52 AM
okay...setFromUnitVectors()...
"Sets this quaternion to the rotation required to rotate direction vector vFrom to direction vector vTo."
I'm not really sure what your image means
 
oh.. basically what i'm trying to do is to project 2d wall onto a 3d one. the white square is a window
so when user add windows on the left part of the screen, i'm supposed to place the actual window on the 3d preview
 
okay, so the 2D wall is a quad that is being rotated to be flat against the 3D wall?
 
yes. and i'll be using CGS to apply cutout on the wall. but that's after i figure out how to get this right
i mean CSG
 
okay. now, does the 3D wall have a rotation stored somewhere? and how is it stored? as another quaternion?
 
1:08 AM
maybe i should give you the context of what i'm trying to do
- user draws 2d floor plan, the program then construct a room with walls based on the plan
- so from 2d vectors, i constructed walls using extrude, so no, i don't really have the rotation of the walls)
- use chooses a wall, add windows to it on the 2d plane
- for the windows in 3d, i just use box geometry, size it accordingly
 
ohh okay, I understand your image now
whoohoo I get it! :D
 
YAY!!!!
i wish i had practised my comp graphics more. i've somewhat returned em to the lecturers as i'm working more on web and mobile stuff now
 
okay, now to figure out how to get the result you want...
I assume Z is forward for your project?
 
i don't mind giving you token of appreciation if you can help me resolve the issue(s) / i have some more after this :/
yeah it is.. facing the user
 
Z goes toward the user? not away from the user?
positive Z that is
 
1:16 AM
towards the user, out from the screen
it's a webgl with three.js project
 
var quaternion = new THREE.Quaternion().setFromUnitVectors(new THREE.Vector3(1, 0, 0), (new THREE.Vector3(x2, y2, z2) - new THREE.Vector3(x1, y1, z1)).normalise());
try that
you might have to play with the first vector. it'll be 1 or -1 in one of the 3 directions. depends on how the two walls are oriented.
err wait
there, that edit should do it
and I'm not sure you can directly subtract vectors with three.js, lol, but there should be a similar method
var right = new THREE.Vector3(1, 0, 0);
var wallDirection = (new THREE.Vector3(x2, y2, z2) - new THREE.Vector3(x1, y1, z1)).normalize();
var quaternion = new THREE.Quaternion().setFromUnitVectors(right, wallDirection);
more readable
 
okay, let me try it
 
what setFromUnitVectors() does is finds the rotation required to get from right to wallDirection
what you had before was interpreting the beginning and end of your wall as directions and trying to figure out the rotation to get from one to the other, which doesn't make much sense at all
 
1:32 AM
you're such a life saver!
looking much better.. but it's not sitting exactly flat on the wall though.. :O
i guess that might be the issue with the algorithm to expand the basic polygon?
 
1:48 AM
Icy, you still there?
 
2:02 AM
@donysukardi gah sorry, got distracted by some random guy who was wrong on the internet
 
lol
 
that inaccuracy is odd though... perhaps you're using the outside-left and inside-right corners of the wall to get your direction?
 
i'll take a closer look on that again
another thing to trouble you, how do i rotate the room such that the blue wall is facing north (top)?
 
you need a rotation matrix (or quaternion) an an origin. then for each vertex **v** you do...
vec3 newPos = (v - origin) * rotMat + origin
or if each wall has its own position then you can replace v with that position and move the whole wall at once
aaand depending on whether your matrix is row or column major, you might have to do "rotMat * (v - origin) + origin" instead
that explanation probably doesn't do you a lot of good unless you're familiar with vector math... I really should write a blog post on the subject to link to people.
 
profound.. profounddddd..
i know right
are you available for hire? maybe i should just let you do it for me :/
 
2:17 AM
I am...kind of. But only part time, and one of my school projects is going to kill me for the rest of the semester so I probably shouldn't pick up a new job yet anyway. Next semester might be better if my capstone doesn't kill me in the same way.
 
just to touch up on this part, shouldn't take you too long right? lol.. it'd prob take me forever
 
longer than you'd think. getting accustomed to a new project enough to actually work with it is painful. and we'd have to work out payment and all that. really not worth it for either of us. sorry.
if I was picking up random freelance projects routinely, I would totally take you up on the offer.
I might start doing exactly that next semester, but not yet
 
cheers! but you've been really helpful :D
 
no problem. I hang out here a lot, and there are a few other people here who are great with math like that, so feel free to ask more questions whenever.
 
lol.. i don't think i'd ever wanna touch 3d stuff again
i major in game dev.. but never really like doing the maths/physics stuff.. now i'm more into web and mobile
 
2:35 AM
I made my own bare bones game framework and started on a math library just because I didn't have any good ideas for a real game and I wanted to learn how it all works. I probably wouldn't have been able to help if I didn't do that.
even gamedev degrees focus too much on "how to program" and not much on "how to solve gamedev related problems"
which is necessary, but sometimes sad
not sure if that changes for postgrad degrees. haven't gotten there yet.
 
Hey guys
 
2:54 AM
hey hey..
@icy
 
I went on a college visit today.
 
hiya #
 
@IcyDefiance i guess that's because at the end of the day, people just want to get their job done without thinking much on the fundamentals
 
well, my point is that "how to program" is more fundamental than the abstract "subtracting a vector from another vector just changes the origin of the first vector and this will be very useful very often"
most people enter college not even knowing how to program, so those bigger picture, abstract things are pretty hard to teach
 
Hey I'm not in college and I know how to program. How am I doing?
 
2:58 AM
you're doing very well
seriously, very well
 
That's comforting.
 
you're ahead of 80% of the people in my classes.
 
Haha
 
on the other hand, that 20% often beats me and I don't like them. stupid competition.
I usually win in terms of math though
 
There's always two sides of the coin.
Went and visited Indiana University today, tomorrow I'm going to see Purdue.
 
3:05 AM
Hahaha.. That reminds me of my class. A lot of them took up game development simply because they liked to play games.
as for me, I'm more interested in the object oriented and aesthetic aspects
 
People take game classes because games are fun. Who doesn't like games? What they don't realize is that they're not giving people who actually want experience in that industry a chance and hogging up class resources so that they can have some downtime (they don't know how hard game dev is until they do it) or have fun.
 
is it that bad?
 
it's not at my uni. class sizes are fairly small and the profs are usually more than happy to answer questions after class or during their office hours.
I haven't ever felt like anyone is holding me back there
except for the requirement to get a degree in the first place... so many companies want it to even consider hiring someone. I think that's kind of stupid.
nothing against the uni or any of the students though
 
3:41 AM
Yello!
 
 
3 hours later…
6:23 AM
I'm announcing the death of Unity engine
 
@Lasse probably not
unity still has better web support and apparently it is the only engine that supports low-end devices
UE would probably never go backwards on their tech, supporting low quality rendering and all that
 
6:47 AM
Ahahaha, I love Steam friends & family sharing. Civ:BE basically for free! :D
 
Hey guys
 
@snake5 well that thing does not yet even support mobile, but when it does, my prediction applies
 
7:07 AM
@Lasse that's assuming unity stays as it is right now, but that's just not going to be so
 
7:36 AM
It'll stay badly designed, screwing with C# standard and all that crap I'm pissed off about in unity
 
8:00 AM
@Lasse when we're talking about product profitability, none of that really matters
I hate the design Unity has too
particularly the ECS
and the mess called "project folder"
but the main question to consider is - can you and how easy is it to ship something with it
 
8:13 AM
I say it's two times slower to ship with unity because of it's bad design
 
@Lasse two times slower than what else?
in certain requirement combos, there's just no one else to offer a shipping plan
 
8:28 AM
UE, but the problem is as you said that only unity ships to all mobile platforms
 
 
2 hours later…
Jon
10:19 AM
As for UnrealC#, there are currently limitations:
Our initial release supports Mac and Windows, since these were the easiest to develop against and ship.

Internally, we have proof of concepts running on Android and iOS, and based on demand, we might complete those efforts.
 
no linux?
 
Jon
In my opinion, it is a step in the right direction.. but still too early
yah, no linux
Strictly for Windows and Mac right now.
 
considering the markets, it makes sense.. technically - not sure
 
Jon
the market here, is essentially c# game devs... which are all using either XNA/Unity, or some variant, like slimdx
 
uhh, I could develop an UE4 addon with my scripting engine if I cared
@Jon I know one who went through XNA and Unity and is now trying to make something with UE4
 
Jon
10:24 AM
and how is that going?
 
about as fast as with Unity, I suppose
says mostly good things about UE4 and predicts the death of Unity, all that
hard to judge tool performance from one-game-in-lifetime developers though
 
I wonder how much can we make developing games easier after Unity and othet visual tools have become outdated
 
@Tyyppi_77 outdated?
are they? since when?
apparently blueprints are all the rage too, these days
 
Wheb they become outdated
Like the evolution has been like programming -> then tools like Unity -> what comes next?
 
Jon
monkeys that code for you
 
10:32 AM
@Tyyppi_77 this is fashion and fashion goes in circles
@Jon thought they achieved that with blueprint already (¬‿¬)
 
Jon
We need to start a programmer's union
kinda like the writer's union
 
not sure about that
we aren't really underpaid or underappreciated
and it's not that hard to earn money with decent skills
what I need to do is to finish a proof-of-concept version of a game engine in under 3 weeks
 
Jon
ok, so get cracking
 
I'm cracking all the time
except when I'm sleeping or at work
 
Jon
i went down the aisle with all the crackers, while doing groceries witih my g/f
I'm like.. "yo lets get outta here, this aisle ain't crackalacking"
 
10:45 AM
@Jon sounds like fun
 
Jon
whoa..
i wish there was a banana next to it
 
what's inside it?
 
Pip
mornin
 
Jon
dunno.. its freaky
 
@Jon only if there are other things like it inside that yellow part
 
Pip
10:49 AM
@snake5 termites?
It IS a queen termite
 
that would suck
especially for wooden house owners, I suppose
 
Jon
reminds me of this
 
looks like an overweight snail
what is it?
 
Jon
slurm queen
 
I didn't know what it is
looked it up
 

« first day (1541 days earlier)