-
Posts
544 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by martyj
-
-
So in 'Murica land there is a big push to have HTTPS set for domain names since ISPs can now sell your data.
I would like Leadwerks to have full support for HTTPS.
How? Well, Let's Encrypt!
100% free. You can set it up to auto-renew.
- 3
-
You could use a geometry shader with it. Allows you to change the verticies on the graphics card.
-
This might help?
http://stackoverflow.com/questions/1279681/mod-rewrite-replace-underscores-with-dashes
I'm not really good with regular expressions though.
-
How does asking a question about cookies equal I dislike something you made?
Well you're re-writing the documentation so I just assumed, why re-invent the wheel twice.
-
So I take it you don't dig my angular app?
No worries. I didn't put that much time into it lol.
-
I'm not getting a request to set a cookie when I visit that page. When a server wants to add a cookie to a users browser, the server will send a "Set-Cookie" header.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie
A simple solution and one that I prefer is to use $_SESSION instead of cookie. That way the data is stored on the server instead of on the users browsers making it more secure.
Make sure to call session_start() when working with $_SESSION.
-
What Ma-Shell said.
The nice aspect about this application is it can be deployed separately for 100% offline documentation.
Another nice aspect is that if you deploy the application say with version 4.4 of Leadwerks, the documentation matches the code. Kind of self-versioning.
I could try a JSONP request to pull down the documentation, the downside is it removes offline capabilities. We could also maybe use local storage to help with this as well.
-
I have updated the link again. It will allow you to navigate to the SetPosition page. This parses the toc.xml to generate the navigation menu and parses API-Reference_Object_Entity_SetPosition.xml for the specific page.
The downsides:
Due to CORS issues, all the XML files have to be on the same host (or localhost). So to update it, I'll have to download the XML files.
- 1
-
I've updated my documentation demo here: http://martyj.net/LEDocs/
I don't think I can do much more on it as far as usability goes until more XML gets released. Right now everything is hard-coded JS objects.
I'd totally love to finish this project as I'd really want offline documentation.
Let me know if you want the source.
-
@Josh is the only XML page http://www.leadwerks.com/documentation/API-Reference_Object_Entity_SetPosition.xml ?
If not, how do we access it via the info provided in toc.xml?
-
I still have a lot more work to do on this, but here is what I have so far on a documentation app.
I'm planning on making it fully offline as I've wanted offline docs since forever.
Things left to do:
- Style page better
- Parse XML to Javascript Objects
- Generate NAV based upon XML
- Support Page Changing with Nav
- Load XML when you change the page
- Style page better
-
I'm 98% sure it will be in the original order and not alphabetized.
Imagine HTML sorting child elements by name and not order. Would be impossible to style things (Unless you flex).
-
I'd recommend you split up parameters like this.
<parameters> <x> X component of the specified position. </x> <y> Y component of the specified position. </y> <z> Z component of the specified position. </z> <position> the position to set. </position> <global> indicates whether the position should be set in global or local space. </global> </parameters>
Would allow for more flexible documentation. If I have some pare time I'll try to throw together a simple Bootstrap/Angular Material example together.
- 1
-
Check out my implementation of shops in World Factions.
Do you guys have any feedback on how I can improve the experience?
Thanks,
Marty
- 7
-
@Josh, how are you rendering strings in Opengl?
-
Thanks everyone. Just making sure my math is on the right track.
@Ma-Shell I guess the angle would be camera->GetFOV()/2 for the triangle. Thanks.
-
I am thinking of creating a minimap generator.
I was wondering if anyone had suggestions on how to place the camera?
You have a map of X by X size (512, 1024, 2048)
You need to generate an image of Y b Y size (probably 2048)
Position of the camera would be at Vec3(0.0, Q, 0.0)
Where Q is the height of the camera.
To have the projection where the map bounds end at the same bounds of the context, what height would you have to set your camera at?
Is this just simple trigonometry?
Q = X/Math::tan(camera->GetFOV()); ?
-
VLC cannot even play this file.
The old OGG Loading code works just fine.
I wonder if it is a problem with the length of the file?
0.05 seconds is really short.
-
Love the API reference! I like to develop when I travel and WIFI is not always a guarantee.
- 1
-
Has anyone tried using a see-through texture on part of the terrain to create the hole?
How would that work with physics?
To get around this for me, I just add a door to my caves which teleports the user.
-
-
@Maclkebee
Camera is a child of PlayerModel. PlayerModel is a Cylinder.
cameraMovement() is a function in this case to check whether the player can move the camera. Returns True or False
cameraRotationY is the rotation to be applied to the camera in the Y direction (left/right movement).
Your link describes the exact same logic.
I am NOT on beta.
-
In my game I use SetInput for camera rotation and movement The problem is that the camera doesn't rotate if the player is standing still.
The code:
if(cameraMovement()) { double camMovementX = ((window->KeyDown(Key:) ? 1 : 0) - (window->KeyDown(Key::A) ? 1 : 0)) * strafeMultiplier; double camMovementZ = ((window->KeyDown(Key::W) ? 1 : 0) - (window->KeyDown(Key::S) ? 1 : 0)) * moveMultiplier * speedMultiplyer; this->playerModel->SetInput(cameraRotationY, camMovementZ, camMovementX); } else { this->playerModel->SetInput(cameraRotationY, 0.0, 0.0); // No movement if a menu is open }
-
I think he means more of something like
Material::LoadById("bullet_impact")
instead of
Material::Load("some\long\pathname\bullet_impact_d.mat")
HTTPS on all Leadwerks domains
in Suggestion Box
Posted
If https://martyj.net will work in your browser, let's encrypt will. (No content on that page BTW)