Forum

User posts Charlie
23 September 2017 20:55
Hi all,

This might be more of Blender question than B4W, either way, I can't figure out what I'm trying to do.

I'm currently building a room-configurator, which on the whole is going pretty well.

My current issue arises within the workflow… So, they're offices… Some are bigger than others, but fundamentally my starting point has every surface (wall, floor etc) with a default material and texture (to be changed by the User in the UI, when the app is in use).

To keep production hours down, every time I build an office with different dimensions, I want to work from the same basic scene, but here's the problem.

So let's start with when I stretch the 'main wall' from say, 10ft to 15ft, it's UV map stretches (as it's supposed to), however, I would obviously like the 'wallpaper pattern' NOT to scale WITH the wall, almost like how global mapping works.

In a nutshell, is there a feature in Blender that makes the map scale down proportionally to the expanding geometry?

Sorry if this sounds like Chinese and I'm not being clear, I've done my best.

C
11 September 2017 22:46
Hey all,

I'm using a screen shooter in my configurable 'room' template, but I'd like to add a functionality where I get 3 shots from pre-determined camera positions.

I'm doing 'reasonably' well with target_set_pivot_translation and the various other Camera module API calls, but it just seems so convoluted.

Is there a way I can simply translate my scene's camera position ('Location', 'Rotation' 'Scale')? So I can find the right framing in blender and copy over the data into B4W?

Thanks in advance

Charlie
20 August 2017 19:44
OK, so I didn't have a bash file, so I created one using Nano and included the rule you mentioned above.

Unfortunately, the error remains the same. One interesting observation I've made is this:

The error is on this line:
b4w.register("OFFICE_DEMO_main", function(e, f)


(OFFICE_DEMO is the name of my project)

The '_main' is NOT part of my project name and I'm not sure where it comes from. If I amend the name in a text editor and reave, the app runs in the browser with no errors but the screen is completely black.

C
20 August 2017 17:47
Thank you, I'll explore this.

C
20 August 2017 14:21
Hey all, I posted a couple of weeks ago with this error, but have subsequently tried lots of things to correct it, with no success.

I began by installing everything on my other Mac, including:

Blender
B4W
Java (it didn't have ANY Java RT on it, it's a new computer)

I also installed the latest JDK.

The problem still exists… Here's the Java console error:

ReferenceError: Can't find variable: b4w
Global Code myProject.min.js:8:474

Initially, the script was also looking for the 'deploy' directory on my server too, which seems odd.

I'm running El Capitan 10:11:6

And here's my Java setup.

java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

This problem is now a couple of weeks old and I've not been able to solve it, which is why it's now in the Bugs section.

Note: My minified build-project can be downloaded here, if anyone would like to take a look at it:

https://www.dropbox.com/s/9zummvh273hzz5w/OFFICE_DEMO.zip?dl=0

Any help would be appreciated, thanks.

C
10 August 2017 17:45
Hey all,

After solving a JDK compiler problem (thanks to Will and Ivan), I've now got another issue.

I've made a 'starter files' project, built it and deployed it.

If I run 'build' from project manager, I get a black screen with the Javascript console stating:

Reference Error: Can't find variable: b4w
Global Code My_Project.min.js:8:474

I tried uploading to my server to see if the problem was consistent. It was, and I also got a 404, where the app seems to be looking for deploy/apps/common/b4w.simple.min.js.map in my directory. Seems weird.

Any pointers?
10 August 2017 16:20
It looks like you're right. When I run the java-version prompt, this is the response.

java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)

Thanks for your help, I'll see if I can take it from here.

C
09 August 2017 15:48
Thanks Ivan / Will

I've looked into this a little deeper, and it's got something to do with the JRE compiler.

I'm using a Mac running Sierra, with Java 8 - Update 144 ( build 1.8.0_144-b01 )

I'm not even sure I can run 6 or 7 any more, I don't seem to be able to get them via Oracle or Sun.

This is a pretty big issue, I could really use a hand.

Thanks

C
31 July 2017 17:22
Hey Will, the build does not work.

The console reports the same; a 404 of the main js file.

I ran it again and noticed this exception in the build process:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
30 July 2017 22:17
Project Name
OFFICE_DEMO

Project Title
Office Demo

Project Author / Company
Project Icon
Applications
[detected automatically]

Application Type
Copy

Size
97 Mb

Project Path (Development Directory)
projects/OFFICE_DEMO

Project Config
projects/OFFICE_DEMO/.b4w_project

Build Directory
projects/OFFICE_DEMO/build

Blend Directory(s)
projects/OFFICE_DEMO/blender

Assets Directory(s)
projects/OFFICE_DEMO/assets

URL Params
JavaScript Obfuscation Level
simple

JS Compilation Pass-Through List
CSS Compilation Pass-Through List
Build Ignore List
Deployment Assets Directory
assets

Deployment Assets URL Prefix
assets

Deployment Ignore List