• What Are You Working On? V13
    5,003 replies, posted
You're gay :frown:
[QUOTE=Z_guy;25621130]The default "center" in SFML is (0,0), aka the top left corner of the sprite (the box in this case). You need to set it to the actual center, by doing box.SetCenter(box.GetSize()/2.f); where box is the name of the sprite. Your degree-radian algorithms are correct.[/QUOTE] Didn't work. Also: here's my algorthim for making the bounding box of the object(my object is 100x100 pixels btw, and SCALING FACTOR is 0.01) box_bounding.SetAsBox( (bv_sprite.GetSize().x / 2) * SCALE_FACTOR, (bv_sprite.GetSize().y / 2) * SCALE_FACTOR);
TextCraft Online will be released in an hour or two :v:
Is there a linux client?
It's C# so noo?
[QUOTE=geel9;25621928]It's C# so noo?[/QUOTE] Mono. What version of .net does TextCraft depend on?
3.5
raymarching things i shouldn't be raymarching. [IMG]http://imgur.com/ICAlb.gif[/IMG]
[QUOTE=deloc;25622064]raymarching things i shouldn't be raymarching. [img_thumb]http://imgur.com/ICAlb.gif[/img_thumb][/QUOTE] Soooo pretty.... can't stop watching!
[QUOTE=neos300;25621626]Didn't work. Also: here's my algorthim for making the bounding box of the object(my object is 100x100 pixels btw, and SCALING FACTOR is 0.01) box_bounding.SetAsBox( (bv_sprite.GetSize().x / 2) * SCALE_FACTOR, (bv_sprite.GetSize().y / 2) * SCALE_FACTOR);[/QUOTE] Looks right to me, can you post your gameloop, specifically the code that sync the SFML box with the Box2D box?
[QUOTE=Z_guy;25622201]Looks right to me, can you post your gameloop, specifically the code that sync the SFML box with the Box2D box?[/QUOTE] b2Vec2 vec = box_body->GetPosition(); sf::Vector2f misc = bm_ToSFML(vec); bv_sprite.SetPosition(misc); b2Transform trans = box_body->GetTransform(); bv_sprite.SetRotation(bm_ToDeg(trans.GetAngle())); bv_sprite.SetCenter(bm_ToSFML(box_body->GetLocalCenter())); win.Draw(bv_sprite); thats the part that syncs it up. bm_ToSFML: sf::Vector2f bm_ToSFML(b2Vec2 vec) { sf::Vector2f newvec(vec.x / SCALE_FACTOR, vec.y / SCALE_FACTOR); return newvec; }
Does anybody know how to load a dynamically allocated struct of vertex data into a DirectX vertex buffer? I can't seem to get it right.
[QUOTE=deloc;25622064]raymarching things i shouldn't be raymarching. [img_thumb]http://imgur.com/ICAlb.gif[/img_thumb][/QUOTE] My god, Slow it down a load and that would look so awesome as a video wallpaper.
[img]http://i.imgur.com/4VX8Y.gif[/img]
[QUOTE=deloc;25622763][img_thumb]http://i.imgur.com/4VX8Y.gif[/img_thumb][/QUOTE] It's minecraft on acid.
[QUOTE=neos300;25622291]b2Vec2 vec = box_body->GetPosition(); sf::Vector2f misc = bm_ToSFML(vec); bv_sprite.SetPosition(misc); b2Transform trans = box_body->GetTransform(); bv_sprite.SetRotation(bm_ToDeg(trans.GetAngle())); bv_sprite.SetCenter(bm_ToSFML(box_body->GetLocalCenter())); win.Draw(bv_sprite); thats the part that syncs it up. bm_ToSFML: sf::Vector2f bm_ToSFML(b2Vec2 vec) { sf::Vector2f newvec(vec.x / SCALE_FACTOR, vec.y / SCALE_FACTOR); return newvec; }[/QUOTE] Well, the only problem I can see is the bv_sprite.SetCenter(). You should put it where you create the box, and it should also be the physical center and not the center of mass which is what you get from box_body->GetLocalCenter().
[QUOTE=eXeC64;25621949]Mono. What version of .net does TextCraft depend on?[/QUOTE] Mono supports every version, although it's not really finished on 4. 3.5 will work fine. Use MoMA if you're unsure.
[QUOTE=Tezzanator92;25622580]My god, Slow it down a load and that would look so awesome as a video wallpaper.[/QUOTE] Please, this Slow down so it's like a REALLY slow glide over a multi-coloured city Make it 1440x900 or upward and you'd have my eternal love and gratitude
A 1440x900 video that loops through that at a very slow rate? Wouldn't that be like 1gb+?
[QUOTE=Darwin226;25623245]A 1440x900 video that loops through that at a very slow rate? Wouldn't that be like 1gb+?[/QUOTE] Why would the rate change the file size? :raise: Edit: By which I mean frame rate.
[QUOTE=BlkDucky;25623312]Why would the rate change the file size? :raise: Edit: By which I mean frame rate.[/QUOTE] The slow rate meant slow moving, so more frames per loop.
Make it a gif?
If you want a smooth glide you obviously can't change the frame rate bellow 25. And for that too be slow would mean you need a lot of frames. More frames = greater file size.
Let it loop through once to load properly and it isnt that bad [img_thumb]http://img258.imageshack.us/img258/1364/icalb.gif[/img_thumb]
[QUOTE=Robert64;25623377]The slow rate meant slow moving, so more frames per loop.[/QUOTE] More of the same frames. So a lower frame-rate.
[QUOTE=deloc;25622064]raymarching things i shouldn't be raymarching. [img_thumb]http://imgur.com/ICAlb.gif[/img_thumb][/QUOTE] Rated artistic because i'm not entirely sure what's happening.
I ported Unifrog to command-line Lua (wx is being a bitch). [media]http://www.youtube.com/watch?v=A-r4zlYdzdI[/media] Download it: [url]http://gist.github.com/644181[/url]
[QUOTE=AaRoNg11;25624062]Rated artistic because i'm not entirely sure what's happening.[/QUOTE] [img]http://dl.dropbox.com/u/4093439/ratingsFlowchart.jpg[/img]
[img]https://dl.dropbox.com/u/99765/687890.png[/img] This will be my last post until I have something to release.
[QUOTE=Z_guy;25622891]Well, the only problem I can see is the bv_sprite.SetCenter(). You should put it where you create the box, and it should also be the physical center and not the center of mass which is what you get from box_body->GetLocalCenter().[/QUOTE] [img]http://k.imgkk.com/i/0/rkIrsiAB/ycxch7.png[/img] I just removed the SetCenter line and I got this. Gonna try a couple more things and then go to bed.
Sorry, you need to Log In to post a reply to this thread.