Сообщения, созданные пользователем v3ny
11 марта 2018 22:31
28 февраля 2018 07:48
28 февраля 2018 07:42
28 февраля 2018 07:39
I had to wrap the init in a function, B4W dev's pointed out that there is a bug in react where it tries to load twice.
Then at the end export the init function
export { b4w_app_init };
//Note: the Else is if you hit refresh in the browser.
const b4w_app_init = () => {
if (!ALREADY_RUNNING) {
ALREADY_RUNNING = true;
m_app.init({
canvas_container_id: "b4w",
callback: init_cb,
autoresize: true,
pause_invisible:true,
physics_enabled: true
});
} else {
m_data.unload();
m_app.init({
canvas_container_id: "b4w",
callback: init_cb,
autoresize: true,
pause_invisible:true
})
}
};
Then at the end export the init function
export { b4w_app_init };
//Note: the Else is if you hit refresh in the browser.
08 января 2018 21:56
08 января 2018 21:15
23 октября 2017 09:59
I see, You wouldn't do all that locally with JS in the browser cache or cookies. B4W guys won't be making that since you need server side. Javascript won't let you write from browser to file system, someone clears cache or cookies and it's all gone, not recoverable..
If you are talking on your local machine you could run it with electron or nwjs. Are you making a stand alone desktop App or an app for internet?
If you are looking to do sub 250ms saving location and translation on app for internet then you want a server to manage that:
I use node.js on a server connected to database. The server keeps track of all that stuff so when user saves or logs out save to DB. You can easily have a save button in the browser which signals to the server to save the info also or just save it all in real time.
I've used, firebase, mongo, mySQL and most recently postgres.
check out heroku.com, they host node.js and have have postgres for free for development..
You can point your node app at firebase or mongodb (mongo is less friendly with the free stuff) or just point the javascript in the browser there directly.
First one I tried was Firebase, super friendly. Works from anywhere, save at 1 second intervals save x,y,z to dB, think I went down to sub 1 sec intervals saving but makes more sense to move to server if you need real time.
firebase & mongo = nosql
mysql and postgres = sql
If you are talking on your local machine you could run it with electron or nwjs. Are you making a stand alone desktop App or an app for internet?
If you are looking to do sub 250ms saving location and translation on app for internet then you want a server to manage that:
I use node.js on a server connected to database. The server keeps track of all that stuff so when user saves or logs out save to DB. You can easily have a save button in the browser which signals to the server to save the info also or just save it all in real time.
I've used, firebase, mongo, mySQL and most recently postgres.
check out heroku.com, they host node.js and have have postgres for free for development..
You can point your node app at firebase or mongodb (mongo is less friendly with the free stuff) or just point the javascript in the browser there directly.
First one I tried was Firebase, super friendly. Works from anywhere, save at 1 second intervals save x,y,z to dB, think I went down to sub 1 sec intervals saving but makes more sense to move to server if you need real time.
firebase & mongo = nosql
mysql and postgres = sql
22 октября 2017 21:40
Thank you Dmitry, well said. This info is very much appreciated!
As far as thematic game competition, maybe a visual scripting only game prototype. With a short timeframe like 30 days it would be a fantastic way to compare all gaming engines.
(coding allowed but with heavy restrictions 5% coding 95% visual block type scripting).
This is my last post on the subject, I know you were trying to say hello and introduce yourself and I've hijacked the thread.. apologies about that :).
I may seem biased here but I come from three.js world with blender experience.. I've worked with unity and am considering migrating my workflow to UE4.
First off I like the B4W methods continuing along the same trajectory is perfectly fine for me. I love JS and the redundant monotonous tasks that can be replaced by logic nodes (as long as they are flexible and work well all the time) I'm all for. Building web configurators and being artist friendly is a major strong suit. (To me B4W is Sketchfab on Steroids!! essentially direct competition, evident by the fact that there are no B4W games other than Petigores tale - so far).
I suggest having a read through of the BGE Manual (anyone reading this, I'm sure B4W guys are aware of it ;) ). The logic node system is more like PLC programming with logic gates, sensors, controllers and actuators. Treating 3D environment like a machine.. a control system methodology. Then the code is added on top to do the more complex tasks.
There is nothing else like it and it already exists in Blender but has no way of exporting to anything other than a desktop game and at that there are licensing issues for your content.
BGE Logics
It's extremely powerful, you can prototype games rapidly - extremely intuitive. Anyone thinking about making a game should try BGE and realize how quickly you can prototype a fully functioning game… also tons and tons of online resources… not to mention again that it's right inside Blender which we all obviously love.
The most powerful node visual scripting system for making games hands down is Blueprints for UE4, but this is a visual way to write C++ code . (I'm generalizing a lot here I know, sorry UE4 people). If you want to visually write software this is the way to go.
Unity has visual scripting the most popular 3rd party product is Playmaker, similar theme here visually writing code. Unity doesn't come out of the box with visual scripting that compares.
UE4 and Unity have massive communities surrounding them.
BGE has a massive community surrounding more like a dedicated fan base, since the games made in BGE have very limited means to deploy their games. IMHO BGE community is the B4W community its such a perfect fit.. I thought this would be the direction B4W would go, can't understand why this isn't the case.
maybe someone that knows more can weigh in on this.. and maybe in a different new thread ;)
…since we're comparing here is the B4W Logics info
…If we're talking about making games with B4W then isn't this B4W users as well? is this the goal for B4W?
BlenderGamers.com
BGE exporter to web with B4W, that's my vote ;).
Games Made with Blender
As far as thematic game competition, maybe a visual scripting only game prototype. With a short timeframe like 30 days it would be a fantastic way to compare all gaming engines.
(coding allowed but with heavy restrictions 5% coding 95% visual block type scripting).
This is my last post on the subject, I know you were trying to say hello and introduce yourself and I've hijacked the thread.. apologies about that :).
I may seem biased here but I come from three.js world with blender experience.. I've worked with unity and am considering migrating my workflow to UE4.
First off I like the B4W methods continuing along the same trajectory is perfectly fine for me. I love JS and the redundant monotonous tasks that can be replaced by logic nodes (as long as they are flexible and work well all the time) I'm all for. Building web configurators and being artist friendly is a major strong suit. (To me B4W is Sketchfab on Steroids!! essentially direct competition, evident by the fact that there are no B4W games other than Petigores tale - so far).
I suggest having a read through of the BGE Manual (anyone reading this, I'm sure B4W guys are aware of it ;) ). The logic node system is more like PLC programming with logic gates, sensors, controllers and actuators. Treating 3D environment like a machine.. a control system methodology. Then the code is added on top to do the more complex tasks.
There is nothing else like it and it already exists in Blender but has no way of exporting to anything other than a desktop game and at that there are licensing issues for your content.
BGE Logics
It's extremely powerful, you can prototype games rapidly - extremely intuitive. Anyone thinking about making a game should try BGE and realize how quickly you can prototype a fully functioning game… also tons and tons of online resources… not to mention again that it's right inside Blender which we all obviously love.
The most powerful node visual scripting system for making games hands down is Blueprints for UE4, but this is a visual way to write C++ code . (I'm generalizing a lot here I know, sorry UE4 people). If you want to visually write software this is the way to go.
Unity has visual scripting the most popular 3rd party product is Playmaker, similar theme here visually writing code. Unity doesn't come out of the box with visual scripting that compares.
UE4 and Unity have massive communities surrounding them.
BGE has a massive community surrounding more like a dedicated fan base, since the games made in BGE have very limited means to deploy their games. IMHO BGE community is the B4W community its such a perfect fit.. I thought this would be the direction B4W would go, can't understand why this isn't the case.
maybe someone that knows more can weigh in on this.. and maybe in a different new thread ;)
…since we're comparing here is the B4W Logics info
…If we're talking about making games with B4W then isn't this B4W users as well? is this the goal for B4W?
BlenderGamers.com
BGE exporter to web with B4W, that's my vote ;).
Games Made with Blender
22 октября 2017 21:11
Seems there is something strange happening with the transform object node, or perhaps I'm using it wrong.
I'm simply using transform object node to rotate the default cube.
The cube is zooming off to some point in the distance. Almost like the node is evaluating 0,0,0 as some location off somewhere else.
I put an empty at 0,0,0.
When you click the cube it moves to empty location and outline flashes for 4 seconds and then it's supposed to rotate. It rotates but flies away?
I'm simply using transform object node to rotate the default cube.
The cube is zooming off to some point in the distance. Almost like the node is evaluating 0,0,0 as some location off somewhere else.
I put an empty at 0,0,0.
When you click the cube it moves to empty location and outline flashes for 4 seconds and then it's supposed to rotate. It rotates but flies away?